Lost your password?

Blogs about: Nmock

Featured Blog

Designing inter-object protocols using mocks2 comments

isaiahperumalla wrote 6 months ago: The intent of my recent paper, was to demonstrate how mock objects could be used to discover roles, … more →

Tags: Mock Objects, Object Oriented Design, Test Driven Design, Arrange Act Assert

Mocking functions taking variable number of args using C# params keyword1 comment

Sid wrote 1 year ago: Consider the following interface that takes a variable number of arguments in its Add method. public … more →

Tags: .NET

Fluently mocking fluent APIs

Sid wrote 1 year ago: The best thing about fluent-style APIs is that they are readable and flow easily. Consider the follo … more →

Tags: .NET, fluent

Testing methods that depend upon a singleton class1 comment

Sid wrote 1 year ago: Singleton is probably one of the most (mis-)used design patterns. In this article I intend to lay ou … more →

Tags: .NET, private accessors, Singleton, unit test

Mocking indexers with NMock

Sid wrote 1 year ago: Indexers allow objects to behave like arrays. Dictionary class in .NET, for example, provides an ind … more →

Tags: .NET, Tech/Hacks, indexers

NMock expectations for functions accepting "ref" and "out" arguments

Sid wrote 1 year ago: There appears to be inadequate documentation on setting up expectations in NMock for methods that ac … more →

Tags: General, expectations, out keyword, ref keyword

Quality in the Real World1 comment

leftshift wrote 1 year ago: We have been producing code quality dashboards at work. They are produced by our CI server whnever a … more →

Tags: code quality, Metrics, asp.net mvc, Dashboard, log4net, NUnit

Rethinking the C# using statement2 comments

mdenomy wrote 1 year ago: I’ve typically used the C# using construct to wrap an instance on an object that has a short l … more →

Tags: C#

Test Driven Development, Mocking, and Breaking dependencies4 comments

Jay wrote 2 years ago: At work I am currently taking a component written by some other teamates and bringing it under test. … more →

Tags: .NET, TDD

NMock article in MSDN Magazine

joewalnes wrote 5 years ago: An article about NMock has appeared in the October issue of MSDN Magazine. Chuffed Mock Objects to t … more →

Tags: Software, .NET, Testing, C#, Mocks


Have your say. Start a blog.

See our free features →

Related Tags
All →

Follow this tag via RSS