示例#1
0
        public void Equals_IfIDsAreTheSame_True()
        {
            var t1 = new Taxon {
                Id = Guid.NewGuid()
            };
            var t2 = new Taxon {
                Id = Guid.NewGuid()
            };

            Assert.IsFalse(t1.Equals(t2));

            t2.Id = t1.Id;
            Assert.IsTrue(t1.Equals(t2));
        }