コード例 #1
0
        public void XmlFieldFormatter_HandlesEmptyValue_AsNull()
        {
            var formatter = new XmlFieldFormatter();

            var result = formatter.Unformat(string.Empty);

            Assert.Equal(result, null);
        }
コード例 #2
0
        public void XmlFieldFormatter_ReturnsValues_AsExpected()
        {
            var formatter = new XmlFieldFormatter();

            var result = formatter.Unformat(FormattedValueExpectation);

            Assert.Equal(result, SourceValueExpectation);
        }
コード例 #3
0
		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");
		}