Beispiel #1
0
        public void CalculateMagicCost_NotMatch_Testing1()
        {
            //Arrange
            int expectedResult = 100;
            //Act
            Magician magObj = new Magician(new MagicianHelperSample2());
            int      result = magObj.CalculateMagicCost(3);

            //Assert
            Assert.AreNotEqual(result, expectedResult);
        }
Beispiel #2
0
        public void CalculateMagicCost_Match_Testing(int pTricks, int expectedCost)
        {
            //Arrange
            //int expectedResult = 100;
            //Act
            Magician magObj = new Magician(new MagicHelper());
            int      result = magObj.CalculateMagicCost(pTricks);

            //Assert
            Assert.AreEqual(result, expectedCost);
        }
        public void CalculateMagicCost_Match_Testing1()
        {
            //Arrange
            int expectedResult = 100;
            //Act
            Magician magObj = new Magician();
            int      result = magObj.CalculateMagicCost(4);

            //Assert
            Assert.AreEqual(result, expectedResult);
        }