public void NotEqual_Different_Ids() { TestKeyIdentity left = new TestKeyIdentity(Guid.NewGuid()); TestKeyIdentity right = new TestKeyIdentity(Guid.NewGuid()); Assert_NotEqual(left, right); }
public void Equal_Same_Ids() { Guid newGuid = Guid.NewGuid(); TestKeyIdentity left = new TestKeyIdentity(newGuid); TestKeyIdentity right = new TestKeyIdentity(newGuid); Assert_Equal(left, right); }
public void NotEqual_CompareWithNull() { TestKeyIdentity left = new TestKeyIdentity(Guid.NewGuid()); Assert_NotEqual(left, null); }
public void NotEqual_Different_Type() { TestKeyIdentity left = new TestKeyIdentity(Guid.NewGuid()); Assert.False(left.Equals(new object())); }
public void Equal_Self() { TestKeyIdentity left = new TestKeyIdentity(Guid.NewGuid()); Assert_Equal(left, left); }
public void ToString_Is_Guid() { TestKeyIdentity left = new TestKeyIdentity(Guid.NewGuid()); Assert.Equal(left.Id.ToString(), left.ToString()); }