Catel.Test.Runtime.Serialization.XmlSerializerFacts.AdvancedSerializationFacts.CorrectlySerializesToXmlString C# (CSharp) Method

CorrectlySerializesToXmlString() private method

private CorrectlySerializesToXmlString ( ) : void
return void
            public void CorrectlySerializesToXmlString()
            {
                var testModel = new TestModel();

                testModel._excludedField = "excluded";
                testModel._includedField = "included";

                testModel.ExcludedRegularProperty = "excluded";
                testModel.IncludedRegularProperty = "included";

                testModel.ExcludedCatelProperty = "excluded";
                testModel.IncludedCatelProperty = "included";

                var xml = testModel.ToXmlString();

                Assert.IsFalse(xml.Contains("Excluded"));
            }
        }