public void InstanceToStaticShouldFail() { var functions = new MixedFunctions(1); var query = from d in data.ToInjectable(typeof(MixedFunctions)) select functions.VelocityInstanceToStatic(d); Assert.Throws <InvalidOperationException>(() => query.ToList()); }
public void InstanceToStaticShouldFail() { var functions = new MixedFunctions(1); var query = from d in data.ToInjectable(typeof(MixedFunctions)) select functions.VelocityInstanceToStatic(d); var error = Assert.Throws <InvalidOperationException>(() => query.ToList()); Assert.Equal("Unable to retrieve lambda expression from NeinLinq.Fakes.InjectableQuery.MixedFunctions.VelocityInstanceToStatic: non-static implementation expected.", error.Message); }