public void CompareToWithUnequalObjectTypes() { var first = new NotificationName("name"); var second = new object(); Assert.Throws <ArgumentException>(() => first.CompareTo(second)); }
public void CompareToOperatorWithEqualObjects() { var first = new NotificationName("name"); object second = first.Clone(); Assert.AreEqual(0, first.CompareTo(second)); }
public void CompareToWithSmallerFirstObject() { var first = new NotificationName("a"); var second = new NotificationName("b"); Assert.IsTrue(first.CompareTo(second) < 0); }
public void EqualsWithUnequalObjectTypes() { var first = new NotificationName("name"); var second = new object(); Assert.IsFalse(first.Equals(second)); }
public void CompareToWithNullObject() { var first = new NotificationName("name"); object second = null; Assert.AreEqual(1, first.CompareTo(second)); }
public void EqualsWithEqualObjects() { var first = new NotificationName("name"); object second = first.Clone(); Assert.IsTrue(first.Equals(second)); }
public void EqualsWithUnequalObjects() { var first = new NotificationName("name1"); object second = new NotificationName("name2"); Assert.IsFalse(first.Equals(second)); }
public void Clone() { var first = new NotificationName("name"); var second = first.Clone(); Assert.AreEqual(first, second); }
public void EqualsWithNullObject() { var first = new NotificationName("name"); object second = null; Assert.IsFalse(first.Equals(second)); }
public void SmallerThanOperatorWithEqualObjects() { var first = new NotificationName("name"); var second = first.Clone(); Assert.IsFalse(first < second); }
public void SmallerThanOperatorWithFirstObjectSmaller() { var first = new NotificationName("a"); var second = new NotificationName("b"); Assert.IsTrue(first < second); }
public void SmallerThanOperatorWithBothObjectsNull() { NotificationName first = null; NotificationName second = null; Assert.IsFalse(first < second); }
public void SmallerThanOperatorWithSecondObjectNull() { var first = new NotificationName("name"); NotificationName second = null; Assert.IsFalse(first < second); }
public void SmallerThanOperatorWithFirstObjectNull() { NotificationName first = null; var second = new NotificationName("name"); Assert.IsTrue(first < second); }
public void LargerThanOperatorWithSecondObjectNull() { var first = new NotificationName("name"); NotificationName second = null; Assert.IsTrue(first > second); }
public void LargerThanOperatorWithFirstObjectNull() { NotificationName first = null; var second = new NotificationName("name"); Assert.IsFalse(first > second); }