testing posts

Read about our day to day discoveries, the trips we take around the world, our personal developments and news about the things we do at Manas.

  • Nov 13 2009
    Parameterized Tests

    In order to prevent the dreadful copy-paste habits in unit tests (remember, tests are also code, so all the good practices you use when writing code should also apply to tests) a common pattern to test similar behaviour when slightly...

  • Suppose you have to fix a bug in an ASP.NET application. You’re a TDD-guy so once you identify it, you write a test which should reproduce it. Then you run it and… null pointer exception. Your testing framework may have pointed you to...

  • May 18 2009
    Tests are also Code

    Many times we put all of our effort in developing an elegant solution to a certain problem we have, thus leaving testing to a second place, without too much consideration for it. Regardless of being using TDD or just creating unit tests...

  • I stumbled upon an excellent article by Martin Fowler in which he describes the difference between stubs and mocks, and afterwards the difference between classic and mockist TDD. Be warned, the article is a few years old, but still a...

  • The new feature encapsulated by MatcherAttibute in Moq allows developers to create quite easy argument matchers. In a scenario with a Customer class and a IFooService: public class