示例#1
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();
        }
示例#2
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();
        }
示例#3
0
 public void it_should_be_empty_if_created_from_a_zeroed_string()
 {
     var objectId = new ObjectId(EmptyTestString);
     objectId.Should().Be(ObjectId.Empty);
 }