public void ShouldFailWithInvalidSiblingSignature() { var query = from d in data.ToInjectable(typeof(IFunctions)) select functions.VelocityWithInvalidSiblingSignature(d); Assert.Throws <InvalidOperationException>(() => query.ToList()); }
public void ShouldFailWithInvalidSiblingSignature() { var query = from d in data.ToInjectable(typeof(IFunctions)) select functions.VelocityWithInvalidSiblingSignature(d); var error = Assert.Throws <InvalidOperationException>(() => query.ToList()); Assert.Equal("Unable to retrieve lambda expression from NeinLinq.Fakes.InjectableQuery.ConcreteFunctions.VelocityWithInvalidSiblingSignature: method returns non-matching expression.", error.Message); }