SQL Server

Technologie

July 2010 Entries

Fast Many per second Independent Ability to to run test cases in any order Isolated only one aspect per test case –> Failure reasons could better be identified Repeatable Execution order does no matter Self-validating No manual evaluation required Small Easy to understand, evolvable Transparent purpose of test case should be clear Timely Written before/during code ......

Rules The following rules outline the naming guidelines for events: Use Pascal case. Do not use Hungarian notation. Use an EventHandler suffix on event handler names. Specify two parameters named sender and e. The sender parameter represents the object that raised the event. The sender parameter is always of type object, even if it is possible to use a more specific type. The state associated with the event is encapsulated in an instance of an event class named e. Use an appropriate and specific ......

Precondition Naming Its a good practice to have a common naming schema for test projects, fixture categories and fixture. Especially to configure automatic runs of unit tests is much more easier with this. For each project we have a correspondending test project which has the same name suffixed with .Test. Other teams uses .Test, .Fixture or .Fixtures. Fixtures themself have the same name like the to be tested class suffixed with Fixture. Maybe that this is not the best idea, because normally each ......

Today my FxCop-GUI stated, that a new release is available – but the link to this release is broken. After googling a little bit i realized, that the new release of FxCop ist actually only included in “Windows SDK for Windows 7.1”. This is downloadable under Microsoft Windows SDK for Windows 7 and .NET Framework 4 (ISO) Extract the ISO Open the Setup\WinSDKNetFxTools\cab1... Extract WinSDK_FxCopSetup.exe_all_e... Run Install.Exe ......

Using a project-specific custom disctionary for FxCop and FxCop build tasks is very simple. The FxCopCmd call in the FxCop-target offers the parameter /dictionary:<DictionaryN... for that. But for Visual Studio a little bit more steps are needed. And these steps musst me gone for all projects. Add the custom dictionary as a link to each project. I organize such links under the special Properties-folder. So normally these links dont violate my eyes ;-) Next step requieres editing of the csproj-files. ......