public void ShouldBeAbleToConvertAsStringWhitoutIndentation() { SampleDataClass data = new SampleDataClass() { Id = 1, Description = "foo" }; string result = data.Convert(new XmlConvertSettings() { Formatting = Formatting.None }); var expected = "<SampleDataClass><Id>1</Id><Description>foo</Description></SampleDataClass>"; result.ShouldEqualWithDiff(expected); }