Esempio n. 1
0
        public void TestNumIsNegativeReturnsFalse()
        {
            //Arrange
            Calculator calc = new Calculator();
            //Act
            bool answer = calc.IsPositive(-1.0);

            //Assert
            Assert.AreEqual(false, answer);
        }
Esempio n. 2
0
        public void TestNumIsPositiveReturnsTrue()
        {
            //Arrange
            Calculator calc = new Calculator();
            //Act
            bool answer = calc.IsPositive(0.0);

            //Assert
            Assert.AreEqual(true, answer);
        }
Esempio n. 3
0
        public void TestNumIsPositiveReturnsTrue()
        {
            //Arrange
            Calculator calc = new Calculator();
            //Act
            bool answer = calc.IsPositive(0.0);

            //Assert
            Assert.AreEqual(true, answer);
        }
Esempio n. 4
0
        public void TestNumIsNegativeReturnsFalse()
        {
            //Arrange
            Calculator calc = new Calculator();
            //Act
            bool answer = calc.IsPositive(-1.0);

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