コード例 #1
0
        public void EnumTextRedactsCorrectly(RedactEnumForXmlText value, string expectedAttributeValue)
        {
            _testClass.EnumTextProperty = new RedactEnumText {
                Value = value
            };

            var xml = Serialize();

            Console.WriteLine(xml);

            Assert.That(xml, Contains.Substring(string.Format("<EnumTextProperty>{0}</EnumTextProperty>", expectedAttributeValue)));
        }
コード例 #2
0
        public void EnumTextRedactsCorrectly(RedactEnumForXmlText value, string expectedAttributeValue)
        {
            _testClass.EnumTextProperty = new RedactEnumText { Value = value };

            var xml = Serialize();
            Console.WriteLine(xml);

            Assert.That(xml, Contains.Substring(string.Format("<EnumTextProperty>{0}</EnumTextProperty>", expectedAttributeValue)));
        }