public void Static_implicit_conversion_with_string_argument_returns_properly_initialized_instance() { WriteConcern.WValue wValue = "mode"; wValue.Should().BeOfType <WriteConcern.WMode>(); ((WriteConcern.WMode)wValue).Value.Should().Be("mode"); }
public void Static_implicit_conversion_with_null_string_argument_returns_properly_initialized_instance() { WriteConcern.WValue wValue = (string)null; wValue.Should().BeNull(); }
public void Static_implicit_conversion_with_nullable_int_argument_returns_properly_initialized_instance() { WriteConcern.WValue wValue = (int?)1; wValue.Should().BeOfType <WriteConcern.WCount>(); ((WriteConcern.WCount)wValue).Value.Should().Be(1); }