public void ShouldReturnCorrectXml() { // Arrange var testConfig = new TestConfig { TestVar1 = "6fa5a650-25f3-4c86-a515-37e3163a54e9" }; // System under Test var configSerializer = new ConfigSerializer(); // Act var xmlDocument = configSerializer.GetSerializedConfigs(new IConfigSection[] { testConfig }); // Assert Assert.AreEqual(CONFIG_XML.Replace(" ", ""), xmlDocument.ToString().Replace("\r\n", "").Replace(" ", "")); }