Skip to content

Commit

Permalink
[SonarCloud] Switching to ApplicationException
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryCharlton committed Sep 27, 2024
1 parent cf40b55 commit a9bfba7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nanoFramework.Json.Benchmark/TypeBenchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void Benchmark_FullName_Comparison()
{
if (!ArrayListFullName.Equals(_list.GetType().FullName))
{
throw new Exception();
throw new ApplicationException();
}
});
}
Expand All @@ -39,7 +39,7 @@ public void Benchmark_Type_Comparison()
{
if (_list.GetType() != typeof(ArrayList))
{
throw new Exception();
throw new ApplicationException();
}
});
}
Expand All @@ -51,7 +51,7 @@ public void Benchmark_Type_Comparison_Static()
{
if (_list.GetType() != ArrayListType)
{
throw new Exception();
throw new ApplicationException();
}
});
}
Expand All @@ -63,7 +63,7 @@ public void Benchmark_TypeUtils_Comparison()
{
if (!TypeUtils.IsArrayList(_list.GetType()))
{
throw new Exception();
throw new ApplicationException();
}
});
}
Expand Down

0 comments on commit a9bfba7

Please sign in to comment.