public void TestpNotNUll() { //arrange double i = 11; double j = 13; //act DefaultStrategy def = new DefaultStrategy(); int actual = def.ENT(i, j); //assert Assert.IsNotNull(actual); }
public void TestENTGeneral() { //arrange double i = 0.11; double j = 0.7; int expected = 0; //act DefaultStrategy def = new DefaultStrategy(); int actual = def.ENT(i, j); //assert Assert.AreEqual(expected, actual); }
public void TestENTiLessj() { //arrange double i = 2; double j = 8; int expected = 32; //act DefaultStrategy def = new DefaultStrategy(); int actual = def.ENT(i, j); //assert Assert.AreEqual(expected, actual); }
public void TestENTjequali() { //arrange double i = 3; double j = 3; int expected = 18; //act DefaultStrategy def = new DefaultStrategy(); int actual = def.ENT(i, j); //assert Assert.AreEqual(expected, actual); }