public void SerializeXml_DoNotFormat_UnformattedXml() { var testObj = new TestPerson { Age = 8, Name = "Sara" }; testObj.SerializeToXml(false).Should().Be(@"<TestPerson><Age>8</Age><Name>Sara</Name></TestPerson>"); }
public void ShouldSerializeXml() { var testObj = new TestPerson { Age = 8, Name = "Sara" }; Approvals.Verify(testObj.SerializeToXml()); }