I'm attemping use PersitenceSpecification with a member of a class that's a dictionary. For example,
new PersistenceSpecification<SupplierContract>(CurrentSession) .CheckProperty(x => x.ProductCosts, new Dictionary<int, decimal> {{1, 5.00m}}) .VerifyTheMappings(); However when I run the test I get this error IntegrationTests.SupplierContractPersistenceTestCase.When_Persisting_Should_Persist_All_Members: System.ApplicationException : For property 'ProductCosts' expected 'System.Collections.Generic.Dictionary`2[System.Int32,System.Decimal]' of type 'System.Collections.Generic.Dictionary`2[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Decimal, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' but got '[1, 5.00000]' of type 'System.Collections.Generic.IDictionary`2[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089], [System.Decimal, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' Any help is greatly appreciated. Cheers, Aeden -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@googlegroups.com. To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.