public void TestCORPow() { //arrange double i = 3; double j = 5; int expected = 15; //act DefaultStrategy def = new DefaultStrategy(); int actual = def.COR(i, j); //assert Assert.AreEqual(Math.Pow(expected, 2), actual); }
public void TestCORNotNuLL() { //arrange double i = 3; double j = 5; //act DefaultStrategy def = new DefaultStrategy(); int actual = def.COR(i, j); //assert Assert.IsNotNull(actual); }
public void TestCOR0() { //arrange double i = 1; double j = 0; int expected = 0; //act DefaultStrategy def = new DefaultStrategy(); int actual = def.COR(i, j); //assert Assert.AreEqual(expected, actual); }