Unit-Test

TwitterFacebook
Get flash to fully experience Pearltrees

Übersicht über datengesteuerte Komponententests

Aktualisiert: November 2007 Ein datengesteuerter Komponententest ist ein Komponententest, der für jede Zeile einer Datenquelle wiederholt ausgeführt wird. Ein häufiges Szenario für das Verwenden von datengesteuerten Komponententests ist das Verwenden mehrerer Eingabewerte zum Testen einer API-Funktion. http://64.4.11.163/de-de/magazine/ms182519
Rhino Mocks is using Castle Dynamic Proxy (http://www.castleproject.org/dynamicproxy/index.html) to handle proxying the types it needs to mock. The Dynamic Proxy project has been invaluable resource and made creating Rhino Mocks possible. To install RhinoMocks, run the following command in the Package Manager Console

Gallery | RhinoMocks 3.6.1

http://nuget.org/packages/RhinoMocks/3.6.1
You can set up a unit test so that instead of typing values into a test method, you can retrieve the values from a data source. The unit test is run successively for each row in the data source.

How to: Create a Data-Driven Unit Test

http://msdn.microsoft.com/en-us/library/ms182527(v=vs.90).aspx

Rhino.Mocks - the basics

Started using Rhino.Mocks recently (Awesome!!!) http://house9-code-samples.blogspot.com/2008/02/rhinomocks-basics.html
http://code.google.com/p/moq/ Update : Development of this project has moved to GitHub . New releases and bug fixes will be published there. var mock = new Mock < ILoveThisFramework >(); // WOW! No record/replay weirdness?! :) mock .

moq - The simplest mocking library for .NET 3.5 and Silverlight with deep C# 3.0 integration

Rhino Mocks Introduction - Ayende @ Wiki

http://ayende.com/Wiki/Rhino+Mocks+Introduction.ashx Edit [I tried to create an example for this article, but the example was both contrived and didn't portray the possibilities correctly. So most of the code samples here are taken from NHibernate Query Analyzer tests and are "real code".]