Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }