コード例 #1
0
 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");
 }
コード例 #2
0
 public void Static_implicit_conversion_with_null_string_argument_returns_properly_initialized_instance()
 {
     WriteConcern.WValue wValue = (string)null;
     wValue.Should().BeNull();
 }
コード例 #3
0
 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);
 }