Exemple #1
0
        public void WordCalcTestMethod3()
        {
            var numberOne = 7;
            var numberTwo = "seven";

            WordCalc.WordCalc wordCalc = new WordCalc.WordCalc(numberOne, numberTwo);
            var product         = wordCalc.Multiply();
            var expectedProduct = 49;

            Assert.AreEqual(expectedProduct, product);
        }
Exemple #2
0
        public void WordCalcTestMethod2()
        {
            var numberOne = 4;
            var numberTwo = "five";

            WordCalc.WordCalc wordCalc = new WordCalc.WordCalc(numberOne, numberTwo);
            var product         = wordCalc.Multiply();
            var expectedProduct = 20;

            Assert.AreEqual(expectedProduct, product);
        }