Beispiel #1
0
        public void Execute_throws_on_null_parameters()
        {
            var executionStrategy = new DefaultSqlExecutionStrategy();

            Assert.Equal(
                "operation",
                Assert.Throws <ArgumentNullException>(() => executionStrategy.Execute(null)).ParamName);

            Assert.Equal(
                "operation",
                Assert.Throws <ArgumentNullException>(() => executionStrategy.Execute((Func <object>)null)).ParamName);
        }