public void TestEquals_IdEquals()
        {
            Guid id = Guid.NewGuid();

            _sample  = new PersistentObjectSample(id);
            _sample2 = new PersistentObjectSample(id);
            Assert.True(_sample.Equals(_sample2));
            Assert.True(_sample == _sample2);
            Assert.False(_sample != _sample2);
        }
        public void TestEquals_InvalidType()
        {
            Guid id = Guid.NewGuid();

            _sample = new PersistentObjectSample(id);
            PersistentObjectSample2 sample2 = new PersistentObjectSample2(id);

            Assert.False(_sample.Equals(sample2));
            Assert.True(_sample != sample2);
            Assert.True(sample2 != _sample);
        }
        public void TestEquals_Null()
        {
            Assert.False(_sample.Equals(_sample2));
            Assert.False(_sample.Equals(null));

            Assert.False(_sample == _sample2);
            Assert.False(_sample == null);
            Assert.False(null == _sample2);

            Assert.True(_sample != _sample2);
            Assert.True(_sample != null);
            Assert.True(null != _sample2);

            _sample2 = null;
            Assert.False(_sample.Equals(_sample2));

            _sample = null;
            Assert.True(_sample == _sample2);
            Assert.True(_sample2 == _sample);
        }