Ejemplo n.º 1
0
        public void StaticToInstanceShouldFail()
        {
            var query = from d in data.ToInjectable(typeof(MixedFunctions))
                        select MixedFunctions.VelocityStaticToInstance(d);

            Assert.Throws <InvalidOperationException>(() => query.ToList());
        }
Ejemplo n.º 2
0
        public void StaticToInstanceShouldFail()
        {
            var query = from d in data.ToInjectable(typeof(MixedFunctions))
                        select MixedFunctions.VelocityStaticToInstance(d);

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

            Assert.Equal("Unable to retrieve lambda expression from NeinLinq.Fakes.InjectableQuery.MixedFunctions.VelocityStaticToInstance: static implementation expected.", error.Message);
        }