MongoDB.DriverUnitTests.CanCommandBeSentToSecondaryTests.TestCanSendCommandToSecondary C# (CSharp) Метод

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

private TestCanSendCommandToSecondary ( string command, bool expectedResult ) : void
command string
expectedResult bool
Результат void
        public void TestCanSendCommandToSecondary(string command, bool expectedResult)
        {
            var doc = new BsonDocument(command, 1);
            var result = CanCommandBeSentToSecondary.DefaultImplementation(doc);

            Assert.AreEqual(expectedResult, result);
        }