Archive for category Unit Testing
Cannot convert source type “MyType” to target type “MyType”
Posted by andrewcushen in Programming Tools, Uncategorized, Unit Testing, Visual Studio on October 29, 2013
I recently installed ReSharper!. Today I was working on getting some old, previously ignored Unit Tests to pass for my current project. All of a sudden I noticed a nasty red squiggly underline on my actual = target.MethodUnderTest(input); call. Hovering over the offending code produced an error along these lines: Cannot convert source type Very.long.namespace.and.project.name.MyClass […]
MS Test data-driven tests/.CSV file error: Column ‘columnname’ does not belong to table
Posted by andrewcushen in Unit Testing, Visual Studio on September 30, 2010
This is a maddening error, in the best Microsoft tradition of error-text-tells-you-nothing-about-the-real-cause. You are happily running your unit tests using MS Test, and you write a new unit test that requires a series of data to be thrown at the test. An example could be testing the validation code of a property setter. A perfect […]
Using Rhino.Mocks 3.5-and-up with VB.NET 9
Posted by andrewcushen in Unit Testing on January 20, 2010
Choosing a Mocking Framework Lately I have been getting a bit more serious about Unit Testing, dipping my toe in the Test-Driven Development pool. In reading up on the subject, I came across the concept of using mocking frameworks to dynamically and automatically create stub- and mock- objects. i began looking into the various frameworks […]