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

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

private TestCanSendInlineMapReduceToSecondary ( ) : void
Результат void
        public void TestCanSendInlineMapReduceToSecondary()
        {
            var doc = new BsonDocument
            {
                { "mapreduce", "col" },
                { "map", "emit()" },
                { "reduce", "return 1" },
                { "out", new BsonDocument("inline", 1) }
            };

            var result = CanCommandBeSentToSecondary.DefaultImplementation(doc);

            Assert.IsTrue(result);
        }