Пример #1
0
        public void FarenheitToCelcius_Test()
        {
            GroupTwoFunctions g2 = new GroupTwoFunctions();

            //Assert.Equal(-18 , g2.FarenheitToCelcius(0) ); This test will always fail the implimentation fail the entire implimentation as it is the only one to round up (the rest round down even when above .5)
            Assert.Equal(-26, g2.FarenheitToCelcius(-15));
            Assert.Equal(37, g2.FarenheitToCelcius(100));
            Assert.Equal(65, g2.FarenheitToCelcius(150));
            Assert.Equal(537, g2.FarenheitToCelcius(1000));
        }
Пример #2
0
        public void FarenheitToCelcius_test(int expected, int input)
        {
            GroupTwoFunctions G1 = new GroupTwoFunctions();

            ;
            Assert.Equal(expected, G1.FarenheitToCelcius());
        }
        public void FarenheitToCelcius(int expected, int farenheit)
        {
            var ml     = new GroupTwoFunctions();
            var result = ml.FarenheitToCelcius(farenheit);

            Assert.Equal(result, expected);
        }
Пример #4
0
 public void FarenheitToCelcius_Test()
 {
     Assert.Equal(0, FunctiontoTest.FarenheitToCelcius(32));
     Assert.Equal(22.22, FunctiontoTest.FarenheitToCelcius(72));
     Assert.Equal(100, FunctiontoTest.FarenheitToCelcius(212));
 }
Пример #5
0
 public void FarenheitToCelcius_Test(int expected, int farenheit) {
     Assert.Equal(expected, x.FarenheitToCelcius(farenheit));
 }
Пример #6
0
 public void FarenheitToCelcius_Test(int answere, int farenheit)
 {
     Assert.Equal(answere, z.FarenheitToCelcius(farenheit));
 }