public void VerifyIsNegative()
        {
            //Arrange
            double negativeNumber = -10;

            //Assert
            Assert.IsTrue(_calculator.isNegative(negativeNumber));
        }
예제 #2
0
        public void CheckIsNegativeWithDouble()
        {
            Thread.Sleep(10000);
            Calculator calculator = new Calculator();
            double     a          = -18655559;

            //Act
            var actualResult = calculator.isNegative(a);

            //Assert
            Assert.AreEqual(true, actualResult);
        }