コード例 #1
0
        public void ShouldFailWithInvalidSiblingSignature()
        {
            var query = from d in data.ToInjectable(typeof(IFunctions))
                        select functions.VelocityWithInvalidSiblingSignature(d);

            Assert.Throws <InvalidOperationException>(() => query.ToList());
        }
コード例 #2
0
        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);
        }