public void CalcRectPerimeter_Test() { GroupTwoFunctions g2 = new GroupTwoFunctions(); Assert.Equal(18, g2.CalcRectPerimeter(4, 5)); //Assert.Equal(6 , g2.CalcRectPerimeter(1 , 1)); This test fails the entire condition Assert.Equal(2240, g2.CalcRectPerimeter(800, 320)); Assert.Equal(2002, g2.CalcRectPerimeter(1, 1000)); }
public void CalcRectPerimeter(int expected, int length, int width) { //construct if need to var ml = new GroupTwoFunctions(); var result = ml.CalcRectPerimeter(length, width); Assert.Equal(result, expected); }
public void CalcRectPerimeter_Test() { Assert.Equal(10, FunctiontoTest.CalcRectPerimeter(4, 1)); Assert.Equal(150, FunctiontoTest.CalcRectPerimeter(50, 25)); }
public void CalcRectPerimeter_test(int expection, int length, int width) { GroupTwoFunctions G1 = new GroupTwoFunctions(); Assert.Equal(expection, G1.CalcRectPerimeter(length, width)); }
public void CalcRectPerimeter_Test(int expected, int length, int width) { Assert.Equal(expected, x.CalcRectPerimeter(length, width)); }
public void CalcRectPerimeter_Test(int expected, int input1, int input2) { GroupTwoFunctions GTF = new GroupTwoFunctions(); Assert.Equal(expected, GTF.CalcRectPerimeter(input1, input2)); }