Get flash to fully experience Pearltrees
Download source files - 3.03 KB Introduction Developing dynamic, flexible, and maintainable applications these days is a necessary, yet difficult task. Systems grow at exponential rates as companies require more and more advanced logic to run their businesses. The ability of a programmer to understand and maintain such systems diminishes as a system's complexity increases.
While perusing some test code recently, I was thinking about data driven test automation. Data driven testing is a pretty simple concept, you write some test automation which takes input which can be configured to exercise a series of tests. So a test case in this example would be one of the data inputs and the test is the automation executing test cases. Sounds simple and it usually is, but in this test, it was not very easy to distinguish between the test and the test case.
You can call PowerShell cmdlets directly from your C# code. First, add a reference to System.Management.Automation to your project. Unfortunately, you need to do this by editing the .vcproj file manually with NotePad or another text editor. Add the following line to the References section: <Reference Include="System.Management.Automation" />
Once you turn on the new spelling rules that we've added to Visual Studio 2008, you will want to start to customize the words that it fires on; this is where the new custom dictionary support comes in. A custom dictionary in its basic form, similar to the concept in Microsoft Word, allows you to silence the spell checker over the words that are not in the standard dictionary, such as company and product names. Adding a custom dictionary to a project To add a custom dictionary to a C# and Visual Basic project is simple: