public void ShouldReturnCorrectConfig() { // Arrange var testConfig = new TestConfig(); // System under Test var configSerializer = new ConfigSerializer(); // Act configSerializer.SetDeserializedConfigs(XDocument.Parse(CONFIG_XML), new IConfigSection[] { testConfig }); // Assert Assert.AreEqual("6fa5a650-25f3-4c86-a515-37e3163a54e9", testConfig.TestVar1); }