public void ToXml_WhenGivenObject_CanConvertObject()
 {
     SampleClass sampleClass = new SampleClass { SampleString = "my string" };
     var xml = sampleClass.ToXml();
     Assert.IsInstanceOf<XDocument>(xml);
     StringAssert.Contains(@"<SampleString>my string</SampleString>", xml.ToString());
 }