public void TestBsonElementEquals() { BsonElement lhs = new BsonElement("Hello", "World"); BsonElement rhs = new BsonElement("Hello", "World"); Assert.AreNotSame(lhs, rhs); Assert.AreEqual(lhs, rhs); Assert.AreEqual(lhs.GetHashCode(), rhs.GetHashCode()); }
public void TestBsonElementEquals() { BsonElement lhs = new BsonElement("Hello", "World"); BsonElement rhs = new BsonElement("Hello", "World"); Assert.NotSame(lhs, rhs); Assert.Equal(lhs, rhs); Assert.Equal(lhs.GetHashCode(), rhs.GetHashCode()); }