예제 #1
0
        public void ExecuteScalar_NullCommandSettings_ArgumentNullExceptionThrown()
        {
            var    runner = new SqlRunner(new MyUnitOfWork());
            Action act    = () => runner.ExecuteScalar(null);

            act.Should().Throw <ArgumentNullException>(CMD_EX);
        }
예제 #2
0
        public void ExecuteScalar_EmptyCommandText_ArgumentNullExceptionThrown(string commandText)
        {
            var    runner = new SqlRunner(new MyUnitOfWork());
            Action act    = () => runner.ExecuteScalar(new CommandSettings(commandText));

            act.Should().Throw <ArgumentException>(CMD_TEXT_EX);
        }