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); }
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); }