示例#1
0
        public void ToBsonValue_should_return_proper_value()
        {
            var wCount    = new WriteConcern.WCount(1);
            var bsonValue = wCount.ToBsonValue();

            bsonValue.Should().BeOfType <BsonInt32>();
            bsonValue.AsInt32.Should().Be(1);
        }
示例#2
0
        public void ToBsonValue_should_return_expected_result()
        {
            var subject = new WriteConcern.WCount(1);

            var result = subject.ToBsonValue();

            result.Should().BeOfType <BsonInt32>();
            result.AsInt32.Should().Be(1);
        }