Unit test with RhinoMocks Record-Playback

CodeKeep C# Feed Aprile 30th, 2008

Description: Unit test with RhinoMocks Record-Playback

Link: http://www.codekeep.net/snippets/5a083679-748f-41f8-af2d-e4a47257013b.aspx

[Test]
public void WriteYourTest()
{
	MockRepository mocks = new MockRepository();
	using (mocks.Record())
	{
	}

	using (mocks.Playback())
	{
	}
}

  • .NET
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Comments are closed.

Trackback URI |