public void TestSquareRootOf70() { Squared squared = new AutomatedCodeTesting.Squared(); squared.Sqdnumber = 70; var result = squared.Calculate(); Assert.AreEqual(368, result, "Sqrt of 70"); }
public void TestSquareRootOf44() { Squared squared = new AutomatedCodeTesting.Squared(); squared.Sqdnumber = 44; var result = squared.Calculate(); Assert.AreEqual(1, 936, result, "Sqrt of 44"); }
public void TestSquareRootOfNeg3() { Squared squared = new AutomatedCodeTesting.Squared(); squared.Sqdnumber = -3; var result = squared.Calculate(); Assert.AreEqual(1.732, result, "Sqrt of -3"); }
public void TestSquareRootOf55() { Squared squared = new AutomatedCodeTesting.Squared(); squared.Sqdnumber = 55; var result = squared.Calculate(); Assert.AreEqual(3, 025, result, "Sqrt of 55"); }
public void TestSquaredValues() { Squared squared = new AutomatedCodeTesting.Squared(); squared.Sqdnumber = 3; var result = squared.Calculate(); Assert.AreEqual(9, result, "Sqrt of 3"); squared.Sqdnumber = 2; result = squared.Calculate(); Assert.AreEqual(4, result, "Sqrt of 2"); squared.Sqdnumber = 25; result = squared.Calculate(); Assert.AreEqual(625, result, "Sqrt of 25"); }