public void ExecuteNonQuery_EmptyCommandText_ArgumentExceptionThrown(string commandText) { var runner = new SqlRunner(new MyUnitOfWork()); Action act = () => runner.ExecuteNonQuery(new CommandSettings(commandText)); act.Should().Throw <ArgumentException>(CMD_TEXT_EX); }
public void ExecuteNonQuery_NullCommandSettings_ArgumentNullExceptionThrown() { var runner = new SqlRunner(new MyUnitOfWork()); Action act = () => runner.ExecuteNonQuery(null); act.Should().Throw <ArgumentNullException>(CMD_EX); }