Advertisment

New Tester Tool – NMock

NMock Logo NMock is a dynamic mock object library for .NET. Mock objects make it easier to test single components—often single classes—without relying on real implementations of all of the other components. This means we can test just one class, rather than a whole tree of objects, and can pinpoint bugs much more clearly. Mock objects are often used during Test Driven Development.

NMock 2.0 Release Candidate 2 is now available! The original NMock was a .NET port of the Java-based DynaMock, whereas NMock 2.0 is inspired by the newer jMock library. Expectations are defined using a much more “conversational” style, including plenty of syntactic sugar to improve clarity.

A dynamic mock object: * takes on the interface of another object, allowing it to be substituted for a real one for testing purposes.
* allows expectations to be defined, specifying how the class under test is expected to interact with the mock.
* fails the test if any of the expectations are violated.
* can also act as a stub, allowing the test to specify objects to be returned from mocked methods.

Features specific to NMock: * expectations are specified beforehand and verified on the fly as the code under test is being executed, rather than afterwards using assertions. This has the advantage that mocks fail fast, allowing you to easily pinpoint the exact point the test failed, using a stack trace or debugger.
* mock implementations of interfaces are generated on the fly at runtime, which avoids having to add a code generation step to the build.
* error messages clearly show the reason for the failure.
* flexible expectations can be built up using the constraint library.

The best way to see how NMock works is to read the Quickstart (5 minutes) or the Tutorial (15 minutes). Developers who already have experience with mock objects will find everything they need to know on the Cheat Sheet.

Goto TesterTools for more detail.

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • BlinkList
  • LinkedIn
  • Netvibes
  • NewsVine
  • Turn this article into a PDF!
  • StumbleUpon
  • Yahoo! Buzz

Did you enjoy this post?

If so, would you please consider sharing it with the world

2 Responses to “New Tester Tool – NMock”

  1. This kind of tools definitely reduced tester work,using this kind of extra features they are able to delivered high quality of products.to their clients.

  2. blu electronic says:

    We were doing some browsing and came across this site. Have to say that this information is great! Keep it up. I will be reading your sites

Leave a Reply




Advertisment
My Twitter Friends
Friends: Followers:
New Testertool – Zanebug

0

Comments

Add

New Testertool – Zanebug

Zanebug is an advanced unit testing application for .NET.
It supports existing NUnit tests, performance metrics, multiple test iterations, in-depth error information, pass / fail stats, perfmon integration, result graphing, etc.

Zanebug introduces the Repeat attribute for methods, its works in this way:
In NUnit you have Setup, and TearDown attributes, that do initialization

Tags: ,
JetBrains introduce new code-coverage tool for .NET developers,

0

Comments

Add

JetBrains introduce new code-coverage tool for .NET developers,

JetBrains, a provider of productivity-enhancing development tools, introduced dotCover, a new code-coverage tool for .NET developers, and dotTrace 4 Performance, a reworked version of its .NET profiling tool.
According to sdtimes.com the tool extends Microsoft Visual Studio and its .NET productivity offerings,
dotCover, an extension to Visual Studio, highlights code that was not covered during a unit

Specialized Products Company Introduces the NetTool Pro Series II Inline Network Testers

2

Comments

Add

Specialized Products Company Introduces the NetTool Pro Series II Inline Network Testers

The NetTool Pro Series II Inline Testers, now available through Specialized Products Company, offers network technicians a one-package solution to a myriad of connectivity problems.
Now available for immediate shipment from Specialized Products Company, http://www.specialized.net/Specialized/Content/Fluke-Networks-NetTool-Pro-SeriesII-Inline-Network-Testers.aspx, are the Fluke NetTool Pro NTS2-Pro Inline Network Tester, the Fluke Networks NTS2-NSKIT Service Kit and the Fluke Networks Pro Series

Typemock releases Isolator 2010 – .Net Unit testing framework

1

Comments

Add

Typemock releases Isolator 2010 – .Net Unit testing framework

Typemock has released unit testing tool Isolator 2010.  Integrating into Visual Studio and TFS, Typemock can change the behavior of any object methods, static methods, sealed classes or private methods.  Isolator 2010 provides a simplified unit testing framework which reduces time to market and lowers to market.

To download from testertools.com click here

New Tester Tool – NMock

2

Comments

Add

New Tester Tool – NMock

NMock is a dynamic mock object library for .NET. Mock objects make it easier to test single components—often single classes—without relying on real implementations of all of the other components. This means we can test just one class, rather than a whole tree of objects, and can pinpoint bugs much more clearly. Mock objects

New TesterTools – Visual Studio Team System

1

Comments

Add

New TesterTools – Visual Studio Team System

Visual Studio Team System Test Edition includes a suite of test tools that are integrated closely with Visual Studio, they work not only in their own testing framework, but also within a larger framework of software life cycle tools.
Test Edition lets you create, manage, edit, and run tests, and also obtain and store test results.
Several

New Testertools – NDoc Code Documentation Generator

0

Comments

Add

New Testertools – NDoc Code Documentation Generator

NDoc generates class library documentation from .NET assemblies and the XML documentation files generated by the C# compiler (or with an add-on tool for VB.NET).
NDoc Extensibility
Both the MSDN and VS.NET documenters support an extensibility model that allows you to define your own tags and control where and how they appear in