public void XmlFieldFormatter_HandlesEmptyValue_AsNull() { var formatter = new XmlFieldFormatter(); var result = formatter.Unformat(string.Empty); Assert.Equal(result, null); }
public void XmlFieldFormatter_ReturnsValues_AsExpected() { var formatter = new XmlFieldFormatter(); var result = formatter.Unformat(FormattedValueExpectation); Assert.Equal(result, SourceValueExpectation); }
public void XmlFieldFormatter_HandlesInvalidValue_AsRawValue() { var formatter = new XmlFieldFormatter(); var result = formatter.Unformat("lol not valid XML m8"); result.Should().Be("lol not valid XML m8"); }