public void Result_should_return_parent_configuration_for_valid_property_expressions()
        {
            var configuration = new UpdateModificationFunctionConfiguration <Entity>();

            Assert.Same(configuration, configuration.Result(e => e.Int, "Foo"));
            Assert.Same(configuration, configuration.Result(e => e.Nullable, "Foo"));
            Assert.Same(configuration, configuration.Result(e => e.String, "Foo"));
            Assert.Same(configuration, configuration.Result(e => e.Bytes, "Foo"));
            Assert.Same(configuration, configuration.Result(e => e.Geography, "Foo"));
            Assert.Same(configuration, configuration.Result(e => e.Geometry, "Foo"));
        }
        public void Result_should_throw_when_complex_property_expressions()
        {
            var configuration = new UpdateModificationFunctionConfiguration<Entity>();

            Assert.Throws<InvalidOperationException>(() => configuration.Result(e => e.ComplexType.Int, "Foo"));
        }
        public void Result_should_return_parent_configuration_for_valid_property_expressions()
        {
            var configuration = new UpdateModificationFunctionConfiguration<Entity>();

            Assert.Same(configuration, configuration.Result(e => e.Int, "Foo"));
            Assert.Same(configuration, configuration.Result(e => e.Nullable, "Foo"));
            Assert.Same(configuration, configuration.Result(e => e.String, "Foo"));
            Assert.Same(configuration, configuration.Result(e => e.Bytes, "Foo"));
            Assert.Same(configuration, configuration.Result(e => e.Geography, "Foo"));
            Assert.Same(configuration, configuration.Result(e => e.Geometry, "Foo"));
        }
        public void Result_should_throw_when_complex_property_expressions()
        {
            var configuration = new UpdateModificationFunctionConfiguration <Entity>();

            Assert.Throws <InvalidOperationException>(() => configuration.Result(e => e.ComplexType.Int, "Foo"));
        }