public void TestThatImplicitOperatorsPreserveNullness() { string nullString = null; StringWrapper wrapper = nullString; wrapper.Should().BeNull(); string unwrapped = wrapper; unwrapped.Should().BeNull(); }
public void TestThatImplicitOperatorsAreOkayWithNonNullStrings() { const string anyString = "Something here"; StringWrapper wrapper = anyString; wrapper.Should().NotBeNull(); string unwrapped = wrapper; unwrapped.Should().NotBeNull().And.Be(anyString); }