public void TestNumIsNegativeReturnsFalse() { //Arrange Calculator calc = new Calculator(); //Act bool answer = calc.IsPositive(-1.0); //Assert Assert.AreEqual(false, answer); }
public void TestNumIsPositiveReturnsTrue() { //Arrange Calculator calc = new Calculator(); //Act bool answer = calc.IsPositive(0.0); //Assert Assert.AreEqual(true, answer); }
public void TestNumIsPositiveReturnsTrue() { //Arrange Calculator calc = new Calculator(); //Act bool answer = calc.IsPositive(0.0); //Assert Assert.AreEqual(true, answer); }
public void TestNumIsNegativeReturnsFalse() { //Arrange Calculator calc = new Calculator(); //Act bool answer = calc.IsPositive(-1.0); //Assert Assert.AreEqual(false, answer); }