Geeks With Blogs
Chris Falter .NET Design and Best Practices May 2007 Entries
How To: Write a Unit Test for Multi-Dimensioned Output
One of the cool features of Visual Studio 2005 is that it can generate a unit test stub for a class or method. However, I recently discovered that the Unit Test plug-in does not know how to auto-generate an assertion for a method whose output includes a multi-dimensioned out parameter or return value. Here's the relevant stub code that VS 2005 generated for one of my methods whose output includes a multi-dimensioned array: // generated code that creates a class instance called "target", plus other ......

Posted On Friday, May 4, 2007 8:42 AM

Copyright © Chris Falter | Powered by: GeeksWithBlogs.net