예제 #1
0
        public void ShouldFailWithInvalidGenericArguments()
        {
            var query = from d in data.ToInjectable(typeof(IFunctions))
                        select functions.VelocityWithInvalidGenericArguments(d);

            var error = Assert.Throws <InvalidOperationException>(() => query.ToList());

            Assert.Equal("Unable to retrieve lambda expression from NeinLinq.Fakes.InjectableQuery.ConcreteFunctions.VelocityWithInvalidGenericArguments: no matching parameterless member found.", error.Message);
        }