MongoDB.BsonUnitTests.BsonEqualsTests.TestBsonRegularExpressionEquals C# (CSharp) Метод

TestBsonRegularExpressionEquals() приватный Метод

private TestBsonRegularExpressionEquals ( ) : void
Результат void
        public void TestBsonRegularExpressionEquals()
        {
            BsonRegularExpression lhs = new BsonRegularExpression("pattern", "options");
            BsonRegularExpression rhs = new BsonRegularExpression("pattern", "options");
            Assert.AreNotSame(lhs, rhs);
            Assert.AreEqual(lhs, rhs);
            Assert.AreEqual(lhs.GetHashCode(), rhs.GetHashCode());
        }