Esempio n. 1
0
        public void CheckDividePassTest()
        {
            double div1           = 50.0;
            double div2           = 0.0;
            double expectedResult = Single.NaN;
            double actualResult   = calc.Divide(div1, div2);

            Assert.IsNaN(expectedResult, "division by zero is not allowed", actualResult);
        }
        public void FundsTransfer_DebitIsNotPresentAndFundsAreGreaterThanBalance_ReturnsDoubleNaN()
        {
            //Arrange
            var bank = new BankAccount(5, false);

            //Act
            var tmp = bank.fundsTransfer(6);

            //Assert
            Assert.IsNaN(tmp);
        }