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);
        }