public void CompareTwoFactsWithDifferentVerbs() { IsFact fact1 = new IsFact("Temperature", 38); IsNotFact fact2 = new IsNotFact("Temperature", 38); Assert.AreNotEqual(fact1, fact2); }
public void CreateIsNotFact() { IsNotFact fact = new IsNotFact("Temperature", 38); Assert.AreEqual("Temperature", fact.Name); Assert.AreEqual(38, fact.Value); Assert.AreEqual("is_not", fact.Verb); }
public void CompareTwoEqualFactsWithNullValue() { IsNotFact fact1 = new IsNotFact("Temperature", null); IsNotFact fact2 = new IsNotFact("Temperature", null); Assert.AreEqual(fact1, fact2); Assert.AreEqual(fact1.GetHashCode(), fact2.GetHashCode()); }
public void IsSatisfiedByWorldContext() { Fact fact = new IsNotFact("Temperature", 20); Assert.IsTrue(this.world.IsAFact(fact)); }
public void IsNotSatisfiedByNullWhenNull() { IsNotFact fact = new IsNotFact("Temperature", null); Assert.IsFalse(fact.IsSatisfiedByValue((object)null)); }
public void IsNotSatisfiedByContext() { IsNotFact fact = new IsNotFact("Temperature", 38); Context context = new Context(); context.SetValue("Temperature", 38); Assert.IsFalse(fact.IsSatisfiedByContext(context)); }
public void CompareFactWithObject() { IsNotFact fact = new IsNotFact("Temperature", 38); Assert.AreNotEqual(fact, 38); }
public void CompareFactWithNull() { IsNotFact fact = new IsNotFact("Temperature", 38); Assert.IsFalse(fact.Equals(null)); }
public void IsSatisfiedByValue() { IsNotFact fact = new IsNotFact("Temperature", 38); Assert.IsTrue(fact.IsSatisfiedByValue(30)); }
public void IsSatisfiedByNull() { IsNotFact fact = new IsNotFact("Temperature", 38); Assert.IsTrue(fact.IsSatisfiedByValue((object) null)); }