internal void Evaluate_WithVariousValues_ReturnsExpectedResult(double membership, double expected) { // Arrange var isNotOperator = LogicOperators.IsNot(); // Act var result = isNotOperator.Evaluate(UnitInterval.Create(membership)); // Assert Assert.Equal(UnitInterval.Create(expected), result); }
/// <summary> /// Returns a proposition based on whether the variable IS NOT in the given state. /// </summary> /// <param name="state"> /// The state. /// </param> /// <returns> /// The <see cref="Proposition"/>. /// </returns> public Proposition Not(FuzzyState state) { return(new Proposition(this, LogicOperators.IsNot(), state)); }