public void TestEqualsFetchIdMustReturnTrueSameReference() { FetchId fetchId = new FetchId(42); bool mustBeTrue = fetchId.Equals(fetchId); Assert.IsTrue(mustBeTrue, "Expected 'Equals' call to be true."); }
public void TestEqualsObjIsNull() { FetchId fetchId = new FetchId(42); bool mustBeFalse = fetchId.Equals(null); Assert.IsFalse(mustBeFalse, "Expected 'Equals' call to be false."); }
public void TestEqualsFetchIdMustReturnTrueNewInstance() { FetchId fetchId = new FetchId(42); FetchId anotherFetchId = new FetchId(42); bool mustBeTrue = fetchId.Equals(anotherFetchId); Assert.IsTrue(mustBeTrue, "Expected 'Equals' call to be true."); }
public void TestEqualsFetchIdMustReturnFalse() { FetchId fetchId = new FetchId(42); FetchId anotherFetchId = new FetchId(15); bool mustBeFalse = fetchId.Equals(anotherFetchId); Assert.IsFalse(mustBeFalse, "Expected 'Equals' call to be false."); }