Skip to content

Commit

Permalink
Better asserts.
Browse files Browse the repository at this point in the history
  • Loading branch information
cincuranet committed Oct 8, 2018
1 parent a63513b commit d5398b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void BinaryBlobTest()
{
if (insert_values[i] != select_values[i])
{
throw new Exception("differences at index " + i.ToString());
Assert.Fail("differences at index " + i.ToString());
}
}
}
Expand Down Expand Up @@ -121,7 +121,7 @@ public void ReaderGetBytes()
{
if (insert_values[i] != select_values[i])
{
throw new Exception("differences at index " + i.ToString());
Assert.Fail("differences at index " + i.ToString());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,7 @@ public void InsertNullTest()
try
{
command.ExecuteNonQuery();

throw new Exception("The command was executed without throw an exception");
Assert.Fail("The command was executed without throwing an exception");
}
catch
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void InsertNullGuidTest()
{
if (!r.IsDBNull(1))
{
throw new Exception();
Assert.Fail();
}
}
}
Expand Down

0 comments on commit d5398b6

Please sign in to comment.