public void IsAtMost() { Assert.That(6.IsAtMost(5), Is.False); Assert.That(6.IsAtMost(7), Is.True); Assert.That(6.IsAtMost(6), Is.True); var subject = new ComparableSubject(6); Assert.That(subject.IsAtMost(5), Is.False); Assert.That(subject.IsAtMost(7), Is.True); Assert.That(subject.IsAtMost(6), Is.True); var genericSubject = new GenericComparableSubject <int>(6); Assert.That(genericSubject.IsAtMost(new GenericComparableSubject <int>(5)), Is.False); Assert.That(genericSubject.IsAtMost(new GenericComparableSubject <int>(6)), Is.True); Assert.That(genericSubject.IsAtMost(new GenericComparableSubject <int>(7)), Is.True); }
public void IsLessThan() { Assert.That(6.IsLessThan(3), Is.False); Assert.That(6.IsLessThan(8), Is.True); Assert.That(6.IsLessThan(6), Is.False); var subject = new ComparableSubject(6); Assert.That(subject.IsLessThan(3), Is.False); Assert.That(subject.IsLessThan(8), Is.True); Assert.That(subject.IsLessThan(6), Is.False); var genericSubject = new GenericComparableSubject <int>(6); Assert.That(genericSubject.IsLessThan(new GenericComparableSubject <int>(3)), Is.False); Assert.That(genericSubject.IsLessThan(new GenericComparableSubject <int>(8)), Is.True); Assert.That(genericSubject.IsLessThan(new GenericComparableSubject <int>(6)), Is.False); }
public void IsDifferentFrom() { Assert.That(6.IsDifferentFrom(5), Is.True); Assert.That(6.IsDifferentFrom(7), Is.True); Assert.That(6.IsDifferentFrom(6), Is.False); var subject = new ComparableSubject(6); Assert.That(subject.IsDifferentFrom(5), Is.True); Assert.That(subject.IsDifferentFrom(7), Is.True); Assert.That(subject.IsDifferentFrom(6), Is.False); var genericSubject = new GenericComparableSubject <int>(6); Assert.That(genericSubject.IsDifferentFrom(new GenericComparableSubject <int>(5)), Is.True); Assert.That(genericSubject.IsDifferentFrom(new GenericComparableSubject <int>(6)), Is.False); Assert.That(genericSubject.IsDifferentFrom(new GenericComparableSubject <int>(7)), Is.True); }