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...
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
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...
There is a good set of articles about Unit Test Patterns in the TypeMock™ site: Unit-Test Patterns for .NET - Part I This article looks at patterns in unit testing and describes the main patterns found in tested .NET code. It also describes the problems with each pattern. Unit Test Patterns for .NET...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
12-26-2007
Filed under: .NET, Community, SoftDev, C#, Microsoft, MSDN, MVP, Tools, Testing, UnitTests, TypeMock
From the series of the SQL Server 2005 Service Pack2 Cumulative Update packages blogs and for instance we blogged about SQL2005SP2CU5 earlier, it is available to download now and before that there is a catch to obtain this package. It is not that easy to download files from the Microsoft download site...
Posted to
SQLServer-QA.net - Knowledge Sharing Network (SSQA.net)
(Weblog)
by
Anonymous
on
12-24-2007
Filed under: sql server, package, msdn, microsoft, blogs, support, service pack2, testing, online, cumulative update, pss, css, installallation
Whenever a service pack is released it will be available for 32-bit and 64-bit that also includes for SQL Express 2005 edition too, as it was for MSDE earlier. Since last year (I think) Microsoft Development team has adopted a standard in naming schema for all service pack updates aka they call it now...
Posted to
SQLServer-QA.net - Knowledge Sharing Network (SSQA.net)
(Weblog)
by
Anonymous
on
11-01-2007
Filed under: sql server, msdn, microsoft, blogs, technet, download, kba, best practices, x64, testing, begin
The main features of this version are: Support of .NET 3.5 syntax changes Mocking automatic properties. Mocking Anonymous Types. Mocking Lambda Expressions. Verifying New Initialziers. Mocking Extension Methods. Mocking LINQ statements. Integration API for tools developers Tracer Enhancement (Professional...
TypeMocks™ 4.0.0 is now available . In my previous analysis mentioned two drwanbacks of this mocking framework: The lack of a mocking scope. The lack of the use of Generics in its APIs. Let's start with the second one. Generic Reflective API TypeMocks™ was the same tool for both the .NET 1.1 and...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
05-20-2007
Filed under: .NET, Architecture, Community, SoftDev, C#, Microsoft, MSDN, MVP, Tools, VisualStudio, Testing
For short: BAD . I've been thinking about this for a while and reading Michael Puleio's blog [ ^ ] [ ^ ] has made me think even more about this. What is often referred as Test Driven Development (TDD) is actually Test First Development (TFD), which is kind of stupid taking in account tools like Visual...
Reading this post from Michael Puleio's blog I got to this post from Michael Feathers' blog . In his post Michael Feathers doesn't state what a unit test is, but what a unit test isn't. And, sometimes, this is just enough to help a lot. A test is not a unit test if: It talks to the database It communicates...