Exemplo n.º 1
0
        public void GetDivision_Input9and3_Return3()
        {
            //Arrange

            double Value1 = 9;
            double Value2 = 3;

            double expectedResult = Value1 / Value2;
            CCalc  testCCalc      = new CCalc(Value1, Value2);

            //Act

            double actualResult = testCCalc.GetDivision();

            //Assert

            Assert.AreEqual(expectedResult, actualResult);
        }
Exemplo n.º 2
0
        public void GetDivision_Input26point8and2_Return13point4()
        {
            //Arrange

            double Value1 = 26.8;
            double Value2 = 2;

            double expectedResult = Value1 / Value2;
            CCalc  testCCalc      = new CCalc(Value1, Value2);

            //Act

            double actualResult = testCCalc.GetDivision();

            //Assert

            Assert.AreEqual(expectedResult, actualResult);
        }