public void TestBsonRegularExpressionEquals() { BsonRegularExpression lhs = new BsonRegularExpression("pattern", "options"); BsonRegularExpression rhs = new BsonRegularExpression("pattern", "options"); Assert.NotSame(lhs, rhs); Assert.Equal(lhs, rhs); Assert.Equal(lhs.GetHashCode(), rhs.GetHashCode()); }