public void ExecuteScalar_NullCommandSettings_ArgumentNullExceptionThrown() { var runner = new SqlRunner(new MyUnitOfWork()); Action act = () => runner.ExecuteScalar(null); act.Should().Throw <ArgumentNullException>(CMD_EX); }
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); }