When writing my unit tests I don’t like to use hard coded fixed values because I either end up using the same values or, because of that, tests may succeed by coincidence. Over time, I have developed an helper class to generate random values for testing. namespace PauloMorgado.VisualStudio.TestTools...
Typemock has updated its Developers Community Site with new sections. Besides the forums , there's a new add-ons page where anyone can share her/his tools or snippets (I guess I'll have to brush up my Typemock Snippets For Visual Studio to add there) and an experts page (guess who's there...
Typemock is having a special Webcast on Wednesday March 12, 16:00 GMT The live demo will include: The Support of the new .NET 3.5 framework and specifically how to mock LINQ statements. The improved IDE based on using colors to emphasize mocked methods. Seamless integration with Microsoft’s Visual Studio...
TypeMock has released version 4.2 of its mocking framework: TypeMock Insulator. Check out the release notes . My four favorite new features in this release are: Improved mock chaining Debugger evaluation doesn't change the test behavior The debugger can be run inside a recording block without confusing...
TypeMock (now called) Insulator 4.2 Beta is publicly available. Check out the release notes . One of my favorite new features is the improved mock chaining. Take this class to be tested: public class TestedClass1 { public IDictionary < string , object > Dictionary { get { throw new NotImplementedException...
Jacob Proffitt has some comments about the the paper on the effectiveness of test-first approach to programming . Here are a few excerpts: If you're like me, you understand the problem better after implementing it and can thus create more relevant tests after the fact than before. I know better where...
Like I said before , this as been on the back of my mind for a while. A while back I introduced a way to get the MethodInfo of a method in a strongly typed way using LINQ , and that's how I'm going to make Reflective Mocks more Natural . Well, it's as easy as this: public static class MockExtender...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
01-31-2008
Filed under: .NET, SoftDev, C#, Microsoft, MSDN, MVP, Tools, Testing, LINQ, UnitTests, TypeMock
Whenever you throw TDD without worshiping it you turn yourself immediately in a victim of religious fundamentalists. TDD is a gift from god, it's good, it's cool and should never be questioned. It's a dogma. Frans Bouma complains about it and the lack of scientific proof of the fact that...
Bruno does a lot of JavaScript development and needs to build lots of web pages to test his code. On top of that, those tests always involve a human tester and cannot be included in automated tests (like in continuous integration). That's why I dared him to build a test framework for JavaScript ...
Eli Lopian from TypeMock™ , has an article on CodeProject about the disadvantages of design for testability and how to use TypeMock™ to remove these disadvantages while keep the advantages of unit testing. I have to say that I agree with Eli: design for testability is BAD. It exposes more that it needs...