Loading ...

What Are Asserts In Nunit

Hello everybody,

just short notice of NUnit function Assert.That

[Test]

public void CheckAddition()
{
  Assert.That(CalculatorClass.Minus (5, 2), Is.EqualTo(3));
}
public void CheckAddition()
{
   //old styel
Assert.AreEqual(3, CalculatorClass.Minus (5, 2));
}

 

Be the first to rate this post

  • Currently 0.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5