Exemplo n.º 1
0
        public void ToString_should_return_expected_value(int?wCount, int?wTimeoutSeconds, bool?fsync, bool?journal, string expected)
        {
            var wTimeout     = wTimeoutSeconds.HasValue ? (TimeSpan?)TimeSpan.FromSeconds(wTimeoutSeconds.Value) : null;
            var writeConcern = new WriteConcern(wCount, wTimeout, fsync, journal);

            writeConcern.ToString().Should().Be(expected);
        }