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

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

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

            var result = CanCommandBeSentToSecondary.DefaultImplementation(doc);

            Assert.IsFalse(result);
        }