Пример #1
0
        public void TestNumIsNegativeReturnsFalse()
        {
            //Arrange
            Calculator calc = new Calculator();
            //Act
            bool answer = calc.IsPositive(-1.0);

            //Assert
            Assert.AreEqual(false, answer);
        }
Пример #2
0
        public void TestNumIsPositiveReturnsTrue()
        {
            //Arrange
            Calculator calc = new Calculator();
            //Act
            bool answer = calc.IsPositive(0.0);

            //Assert
            Assert.AreEqual(true, answer);
        }
Пример #3
0
        public void TestNumIsPositiveReturnsTrue()
        {
            //Arrange
            Calculator calc = new Calculator();
            //Act
            bool answer = calc.IsPositive(0.0);

            //Assert
            Assert.AreEqual(true, answer);
        }
Пример #4
0
        public void TestNumIsNegativeReturnsFalse()
        {
            //Arrange
            Calculator calc = new Calculator();
            //Act
            bool answer = calc.IsPositive(-1.0);

            //Assert
            Assert.AreEqual(false, answer);
        }