public void Inequality_FalseIfDifferentGuid() { CompactGuid one = new CompactGuid(GuidBuilder.Build(1)), two = new CompactGuid(GuidBuilder.Build(2)); Assert.That(one.Equals(two), Is.False); Assert.That(two == one, Is.False); Assert.That(one != two, Is.True); }
public void Equality_TrueIfSameGuid() { CompactGuid one = new CompactGuid(GuidBuilder.Build(1)), anotherOne = new CompactGuid(GuidBuilder.Build(1)); Assert.That(one.Equals(anotherOne), Is.True); Assert.That(anotherOne == one, Is.True); Assert.That(one != anotherOne, Is.False); }