Hot answers tagged dot-net
You can write one on Windows with DSF, but I don't think there's a sample for SD cards at this time.
Have you tried the book The Art of Unit Testing ? http://www.manning.com/osherove/
I am trying a mock that uses an Object List of return values as a queue. Every time my mock is supposed to return something, it first looks in the queue to see if I've queued anything, and if so, returns it. Then I implemented an additional Queue method for my mock that I can call during test setup that just adds items to the List in the order I want them ...
Microsoft Test Manager (MTM) supports attachments and it is integrated with Team Foundation Server (TFS). While you executing the test cases you can add screenshots or files to the failed steps.
I've been using SpecFlow, C#, NUnit and WebDriver to handle much of this. I write all of my tests within Visual Studio and use PowerShell to check source out, compile and start the tests to check my site and services. This gives it a nice framework feel, and once the updated Build System is complete I can add my tests into the build system, my PowerShell ...
General Rules: At least one test method should be written for every public service method and every new or overridden repository method Where applicable, positive and negative tests should be written Every Assert should include a relevant, meaningful error message for when failure occurs The Arrange, Act, Assert pattern should always be followed (see ...
Sadly I don't know how to do this myself, but I found this: http://www.codeproject.com/KB/system/usbeject.aspx Could be a good place to start.
I would probably use selenium to drive the UI testing in the browser for ASP.NET. The UI test will be more brittle but they will give you an accurate indication if you application works correctly. You will find that mocking the items you have shown will still need you to test that they function correctly through the UI. So you might as well push the ...
I highly recommend the book "Pragmatic Unit Testing in C# with NUnit" by Andrew Hunt and David Thomas. If you are using Visual Studio as your IDE you might also want to check out MSDN (e.g. http://msdn.microsoft.com/en-us/library/ms182532.aspx)
Only top voted, non community-wiki answers of a minimum length are eligible