schambers/fluentmigrator — pull request #195 by daniellee (2011-11-26 00:18:58+00:00)
Title: Better error message when using incorrect provider name

There is an issue(#174) describing the problem and I ran into this when reviewing a pull request. As it was driving me mad I decided to fix it!

I added some tests for the GetFactory method and sorted the list of factories by name so that the provider parameter 'sqlserver' will always match the same factory.

I added a more informative exception to Task Executor if the provider name is invalid. And also fixed all the tests for TaskExecutor that were being ignored. I had to change the Initialize method to virtual to be able to test TaskExecutor properly using Subclass and Override.

And I added the exception's stacktrace to the error message of the MSBuild runner.

Any objections to any of this?