Beispiel #1
0
        public void ToBsonValue_should_return_proper_value()
        {
            var wMode     = new WriteConcern.WMode("mode");
            var bsonValue = wMode.ToBsonValue();

            bsonValue.Should().BeOfType <BsonString>();
            bsonValue.AsString.Should().Be("mode");
        }
Beispiel #2
0
        public void ToBsonValue_should_return_expected_result()
        {
            var subject = new WriteConcern.WMode("mode");

            var result = subject.ToBsonValue();

            result.Should().BeOfType <BsonString>();
            result.AsString.Should().Be("mode");
        }