public void MappedElementClassWithNull() { var dummyClass = new MappedElementClass(true, null, 2, 3); var xml = dummyClass.ToXml(); var expected = @"<?xml version=""1.0"" encoding=""utf-16""?> <MappedElementClass> <Value1>true</Value1> <Value3>2</Value3> <Value4>3</Value4> </MappedElementClass>"; Assert.AreEqual(expected, xml); }
public void MappedElementClass() { var instance = new MappedElementClass(true, "", 2, 3); var xml = instance.ToXml(); var expected = @"<?xml version=""1.0"" encoding=""utf-16""?> <MappedElementClass> <Value1>true</Value1> <Value2 /> <Value3>2</Value3> <Value4>3</Value4> </MappedElementClass>"; Assert.AreEqual(expected, xml); }