public void DefaultParser_PocoConfig_ValidXml_ExpectedInstanceReturned()
        {
            DefaultInAnotherCastleParser parser = new DefaultInAnotherCastleParser();
            var results = parser.POCOConfigSectionParse(@"<ExampleConfigurationPoco Name=""TestName"" Value=""TestValue""></ExampleConfigurationPoco>", typeof(ExampleConfigurationPoco));

            results.WithDeepEqual(new ExampleConfigurationPoco
            {
                Name  = "TestName",
                Value = "TestValue"
            }).IgnoreUnmatchedProperties().Assert();
        }
 public void DefaultParser_PocoConfig_InvalidXml_ConfigurationExceptionThrown()
 {
     DefaultInAnotherCastleParser parser = new DefaultInAnotherCastleParser();
     var results = parser.POCOConfigSectionParse(@"<TestInvalid SomeUnknownProperty=""TestName"" SomeUnknownProperty2=""TestValue""></TestInvalid>", typeof(ExampleConfigurationPoco));
 }