Example #1
0
 //[TestCase(4, 2, 2)]
 //[TestCase(5, 2, 2)]
 public void DiffTest(int num1, int num2, int expectedDiff)
 {
     Assert.AreEqual(expectedDiff, testObj.Diff(num1, num2), "Verified difference functionality");
     Soft.Assert(() => Assert.AreEqual(3, 2, "AreEqual"));
     Console.WriteLine("Continuing with test");
     Assert.AreEqual(2, 2, "AreEqual");
 }
 public void SoftAssertTest()
 {
     Soft.Assert(() => Assert.AreEqual(3, 2, "AreEqual"));
     Console.WriteLine("Continuing with the test after soft assert failure");
     Assert.AreEqual(3, 5, "3 and 5 are equal");
 }