public void Pavaj_TestDalaImproperDimensions() { float lung_p = 1; float lat_p = 7; float a = 0; int expected_result = -1; CalculateDale classCalculate = new CalculateDale(); int result = classCalculate.CalculDale(lung_p, lat_p, a); Assert.AreEqual(expected_result, result); }
public void Pavaj_SimpleCase() { // length%a = 0 and high%a=0 int lung_p = 6; int lat_p = 8; int a = 2; int expected_result = 12; CalculateDale classCalculate = new CalculateDale(); int result = classCalculate.CalculDale(lung_p, lat_p, a); Assert.AreEqual(expected_result, result); }
public void Pavaj_TestRoundNeeded() { //length%a !=0 or high%a !=0 float lung_p = 7; float lat_p = 8; float a = 2; int expected_result = 16; CalculateDale classCalculate = new CalculateDale(); int result = classCalculate.CalculDale(lung_p, lat_p, a); Assert.AreEqual(expected_result, result); }