public void Should_use_a_specially_configured_type_default() { var exportSpecification = new FileExport <SimpleObject>(); exportSpecification.AddDefault <int>(value => value + "_ASDF"); var fileExportSpecification = exportSpecification.CreateSpec(); var simpleObject = new SimpleObject { Id = 2, StringValue1 = "HELLO" }; // Should use the "globally" configured formatter fileExportSpecification.GetPropertiesForType <SimpleObject>()["Id"].GetFormattedValue(simpleObject).ShouldEqual("2_ASDF"); // Should not do any special formatting fileExportSpecification.GetPropertiesForType <SimpleObject>()["StringValue1"].GetFormattedValue(simpleObject).ShouldEqual("HELLO"); }