public void ReturnFalseGivenOneIKeyedValueIsNull() { var obj1 = new IKeyedPersistableObjectWithNullableType("FOO"); var obj2 = new IKeyedPersistableObjectWithNullableType(null); Assert.IsFalse(obj1 == obj2); }
public void ReturnTrueGivenIKeyedValuesMatch() { var obj1 = new IKeyedPersistableObjectWithNullableType("MYKEY"); var obj2 = new IKeyedPersistableObjectWithNullableType("MYKEY"); Assert.IsTrue(obj1 == obj2); }
public void ReturnFalseGivenIKeyedValuesDoNotMatch() { var obj1 = new IKeyedPersistableObjectWithNullableType("FOO"); var obj2 = new IKeyedPersistableObjectWithNullableType("BAR"); Assert.IsFalse(obj1 == obj2); }