GroupByTests.cs: In GroupByTwoFieldsWhereOneOfThemIsTooDeep() we get a NullReferenceException from inside the result transformer lambda when running on .Net 4. Perhaps there is something deep in .Net framework that differs between 2.0 and 4.0?. In any case, casting to (int?) already in the group expression resolves this, which seems like a reasonable fix given that an employee may indeed lack a superior.
GroupByTests.cs: In GroupByTwoFieldsWhereOneOfThemIsTooDeep() we get a NullReferenceException from inside the result transformer lambda when running on .Net 4. Perhaps there is something deep in .Net framework that differs between 2.0 and 4.0?. In any case, casting to (int?) already in the group expression resolves this, which seems like a reasonable fix given that an employee may indeed lack a superior.

alobakov/nhibernate-core,RogerKratz/nhibernate-core,RogerKratz/nhibernate-core,ngbrown/nhibernate-core,alobakov/nhibernate-core,hazzik/nhibernate-core,livioc/nhibernate-core,nkreipke/nhibernate-core,livioc/nhibernate-core,RogerKratz/nhibernate-core,hazzik/nhibernate-core,gliljas/nhibernate-core,hazzik/nhibernate-core,fredericDelaporte/nhibernate-core,lnu/nhibernate-core,ManufacturingIntelligence/nhibernate-core,lnu/nhibernate-core,ManufacturingIntelligence/nhibernate-core,ngbrown/nhibernate-core,alobakov/nhibernate-core,fredericDelaporte/nhibernate-core,fredericDelaporte/nhibernate-core,nhibernate/nhibernate-core,gliljas/nhibernate-core,lnu/nhibernate-core,nkreipke/nhibernate-core,ManufacturingIntelligence/nhibernate-core,nhibernate/nhibernate-core,nhibernate/nhibernate-core,nkreipke/nhibernate-core,gliljas/nhibernate-core,fredericDelaporte/nhibernate-core,hazzik/nhibernate-core,livioc/nhibernate-core,gliljas/nhibernate-core,RogerKratz/nhibernate-core,nhibernate/nhibernate-core,ngbrown/nhibernate-core