示例#1
0
        public void GivenPropertyValuesWithEncodedQuotes_WhenDecodeValuesQuotesAndEscapeCalled_ThenDecodedPropertyValuesAreReturned()
        {
            var propertyValue = new PropertyValue()
            {
                Id     = 1,
                Values = new string[] { "10"x4"x"2", "5"x2"x"1" }
            };

            var decodedPropertyValues = propertyValue.DecodeValuesQuotesAndEscape();

            decodedPropertyValues.Values.First().Should().Be("10\"x4\"x\"2");
            decodedPropertyValues.Values.Last().Should().Be("5\"x2\"x\"1");
        }