Mock Objecs: Links, News and Resources (1)

If you are writing code using TDD, maybe you need to mock (or stub) objects. These links are about the history, development, use, advantages and drawbacks of using mock objects in our tests.

http://en.wikipedia.org/wiki/Mock_object

In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways. A computer programmer typically creates a mock object to test the behavior of some other object, in much the same way that a car designer uses a crash test dummy to simulate the dynamic behavior of a human in vehicle impacts.

Mock Objects: A Brief History of Mock Objects
http://www.mockobjects.com/2009/09/brief-history-of-mock-objects.html

Endo-Testing: Unit Testing with Mock Objects
http://static.mockobjects.com/files/endotesting.pdf

TDD – Understanding Mock Objects – Videos – Roy Osherove
http://osherove.com/videos/2009/8/25/tdd-understanding-mock-objects.html

Classic TDD or "London School"? – Software People Inspiring
http://parlezuml.com/blog/?postid=987

Pex, Moles y Code Contract – ALT.NET Hispano Wiki
http://altnethispano.org/wiki/van-2010-05-28-pex-moles-codecontract.ashx

Quick introduction to Pex – Gunnar Peipman’s ASP.NET blog
http://weblogs.asp.net/gunnarpeipman/archive/2010/11/28/quick-introduction-to-pex.aspx

Daniel Cazzulino’s Blog : Mocks, Stubs and Fakes: it’s a continuum
http://www.clariusconsulting.net/blogs/kzu/archive/2007/12/21/47152.aspx

moq – Google Code
http://code.google.com/p/moq/

Mock Framework comparison
http://macunsw.wordpress.com/2011/07/14/mock-framework-comparison/

WCFMock, a mocking framework for WCF services – Pablo M. Cibraro (aka Cibrax)
http://weblogs.asp.net/cibrax/archive/2009/03/08/wcfmock-a-mocking-framework-for-wcf-services.aspx

Mock Objects
http://mockobjects.com/

Mock Roles, Not Objects
http://www.mockobjects.com/files/mockrolesnotobjects.pdf

Daniel Cazzulino’s Blog : Where was the stubbing part in Moq?
http://www.clariusconsulting.net/blogs/kzu/archive/2008/10/12/102928.aspx

Gojko Adzic » Mockito in six easy examples
http://gojko.net/2009/10/23/mockito-in-six-easy-examples/

Mocks versus stubs and fakes
http://www.lazycoder.com/weblog/2009/10/12/mocks-versus-stubs-and-fakes/

HowTo: Mock a Linq-based Dao
http://jfromaniello.blogspot.com/2009/10/howto-mock-linq-based-dao.html

mockito – Google Code
http://mockito.org/

Growing instant legacy code with TDD and Mocks « The IT Risk Manager
http://theitriskmanager.wordpress.com/2011/07/05/growing-instant-legacy-code-with-tdd-and-mocks/

Sobre fake objects, stubs y mocks – How I Met Dot Net
http://geeks.ms/blogs/jcalvarro/archive/2010/07/28/sobre-fake-objects-stubs-y-mocks.aspx

Mock Objects: Test Smell: Too many expectations
http://www.mockobjects.com/2007/05/test-smell-too-many-expectations.html

To mock or not to mock, that is the question – Part 1
http://dotnetslackers.com/articles/designpatterns/To-mock-or-not-to-mock-that-is-the-question-Part-1.aspx

peripatetic axiom: TDD, Mocks and Design
http://peripateticaxiom.blogspot.com/2008/06/tdd-mocks-and-design.html

JavaScript – A simple JavaScript stubbing function – Matthew Manela – Farblondzshet in Code
http://matthewmanela.com/blog/a-simple-javascript-stubbing-function/

Interaction-based testing and stable expectations – Vagif Abilov’s blog on .NET
http://bloggingabout.net/blogs/vagif/archive/2010/08/08/interaction-based-testing-and-stable-expectations.aspx

How to Start Unit Testing .NET Projects: A Guide to Writing Unit Tests
http://www.typemock.com/unit-testing-dot-net

pyDoubles Framework | Test doubles framework for the Python platform
http://www.pydoubles.org/

QMock
andybeeching/qmock – GitHub
QMock is a standalone, lightweight mocking framework that facilitates the testing of JavaScript programs

Moles and Linq to SQL: Mocking Linq to SQL Behavior
http://weblogs.asp.net/mjarguello/archive/2011/04/26/moles-and-linq-to-sql-mocking-linq-to-sql-behavior.aspx

Mock a database repository using Moq
http://www.codeproject.com/Articles/47603/Mock-a-database-repository-using-Moq.aspx

Primeros pasos con Moq – devnettips
http://geeks.ms/blogs/devnettips/archive/2011/01/29/primeros-pasos-con-moq.aspx

Primeros pasos con Moq ( parte II ) – devnettips
http://geeks.ms/blogs/devnettips/archive/2011/03/12/primeros-pasos-con-moq-parte-ii.aspx

Web Dev .NET: Mocking jQuery Ajax Calls with Random Templated Data
http://www.elijahmanor.com/2011/02/mocking-jquery-ajax-calls-with-random.html

Free mocking framework | Telerik
http://www.telerik.com/products/mocking/free.aspx

InfoQ: Brian Marick on Test Maintenance
http://www.infoq.com/interviews/Test-Maintenance

NSubstitute: A friendly substitute for .NET mocking libraries
http://nsubstitute.github.com/

Mocking Comparison – Part 1: The Basics : Richard Banks – Agile and .NET
http://www.richard-banks.org/2010/07/mocking-comparison-part-1-basics.html

Cómo afectan los Mock frameworks nuestras pruebas unitarias – Lucas Ontivero
http://geeks.ms/blogs/lontivero/archive/2010/08/21/c-243-mo-afectan-los-mock-frameworks-nuestras-pruebas-unitarias.aspx

fakeiteasy – Project Hosting on Google Code
http://code.google.com/p/fakeiteasy/

Mocking Clojure Functions with Atticus
http://hugoduncan.org/post/2010/mocking_clojure_functions_with_atticus.xhtml

Endo-Testing: Unit Testing with Mock Objects
http://www.mockobjects.com/files/endotesting.pdf

WCF: Mocking the WebOperationContext
http://devattraktse.blogspot.com/2010/03/mocking-weboperationcontext.html

Unit Testing: Mock Objects to the Rescue! Test Your .NET Code with NMock
http://msdn.microsoft.com/en-us/magazine/cc163904.aspx

Legend Fakes – Fake it easy! – Home
http://fakes.codeplex.com/

Where mocking fails
http://ayende.com/Blog/archive/2008/07/02/Where-mocking-fails.aspx

Inversion of Control Freak: DDD: Entity Injection and Mocking Time
http://jonathan-oliver.blogspot.com/2009/10/ddd-entity-injection-and-mocking-time.html

My Links
http://www.delicious.com/ajlopez/mock
http://www.delicious.com/ajlopez/mocks

My TDD links: TDD Links, News and Resources (1)

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

1 thought on “Mock Objecs: Links, News and Resources (1)

  1. Pingback: Enlaces, Novedades y Recursos - Angel "Java" Lopez

Leave a comment