Exemplo n.º 1
0
        public void CalculateTest(double arOne, double expected)
        {
            var calculator   = new Negation();
            var actualResult = calculator.Calculate(arOne);

            Assert.AreEqual(expected, actualResult);
        }
Exemplo n.º 2
0
        public void Calculate_CallToCalculateWithDifferentTruthValues_ShouldReturnTheOppositeTruthValue(bool truthValue, bool expectedTruthValue)
        {
            // Arrange
            negation.LeftSuccessor.TruthValue = truthValue;

            // Act
            bool actualTruthValue = negation.Calculate();

            // Assert
            actualTruthValue.Should().Be(expectedTruthValue, "because the negation of a truth value results in the opposite value");
        }