Пример #1
0
        public void Not_be_equal_when_members_are_not_equal()
        {
            var id1A = new ScsId("12345678");
            var id2A = new ScsId("12354321");

            Check.That(id1A.Equals(id2A)).IsFalse();
        }
Пример #2
0
        public void Not_be_equal_when_member_is_null()
        {
            var   id1A = new ScsId("12345678");
            ScsId id2A = null;

            Check.That(id1A.Equals(id2A)).IsFalse();
        }
Пример #3
0
        public void Be_equal_when_members_are_equal()
        {
            var id1A = new ScsId("12345678");
            var id2A = new ScsId("12345678");

            Check.That(id1A.Equals(id2A)).IsTrue();
            Check.That(id1A).Equals(id2A);
        }