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(); }
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(); }
public void it_should_be_empty_if_created_from_a_zeroed_string() { var objectId = new ObjectId(EmptyTestString); objectId.Should().Be(ObjectId.Empty); }