Пример #1
0
        public void it_should_not_be_equal_if_they_are_different()
        {
            var a = new ObjectId(TestString);
            var b = new ObjectId(AnotherTestString);

            a.Should().NotBe(b);
            a.Equals(b).Should().BeFalse();
            (a != b).Should().BeTrue();
        }
Пример #2
0
        public void it_should_be_equal_if_they_are_the_same()
        {
            var a = new ObjectId(TestString);
            var b = new ObjectId(TestString);

            a.Should().Be(b);
            a.Equals(b).Should().BeTrue();
            (a == b).Should().BeTrue();
        }