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
Some time ago I complained about the fact that a TypeConverter for Type s was missing from the .NET Framework . At the time I had search for one in the framework but only found internal or private implementations. As it turns out, the version 2.0 of the .NET Framework introduced a TypeNameConverter that...
For those who can't (or don't want to) deploy .NET Framework 3.5, the service packs included for the 2.0 and 3.0 versions of the framework are available as standalone downloads. Microsoft .NET Framework 2.0 Service Pack 1 (x86) Microsoft .NET Framework 2.0 Service Pack 1 (x64) Microsoft .NET...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
11-22-2007
Filed under: .NET, WinForms, ASP.NET, SoftDev, C#, Microsoft, MSDN, MVP, VisualStudio, WCF, WPF, WF, WindowsClient
Visual Studio 2008 and .NET Framework 3.5 has finally shipped. MSDN subscribers can download the final version of Visual Studio 2008 from MSDN Subscription Downloads , but anyone can get a trial version or an Express Edition . The .NET Framework 3.5 contains many new features building incrementally upon...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
11-21-2007
Filed under: .NET, WinForms, ASP.NET, SoftDev, C#, Microsoft, MSDN, SQLServer, XML, VisualStudio, WCF, WPF, WF, WindowsClient, LINQ
Today, S.Somasegar announced at TechEd Developers EMEA , amongst other things, that they the product team at Microsoft is putting the finishing touches on Visual Studio 2008 and .NET FX 3.5. They are on track to shipping these products before the end of November 2007. They will have the marketing launch...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
11-05-2007
Filed under: .NET, Architecture, ASP.NET, Community, SoftDev, C#, Microsoft, MSDN, MVP, VisualStudio, TechEd
With IIS7 a new transfer method is available in the HttpServerUtility class . It's the TransferRequest method . What this method is intended to do is behave like the HttpResponse.Redirect method without the penalty of traveling to the client and back . I said "is intended to behave" because...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
10-15-2007
Filed under: .NET, Architecture, ASP.NET, Community, SoftDev, C#, Microsoft, MSDN, MVP, Web, PageModules, IIS
Visual Studio's Unit Test generator generates a call to Assert.Inconclusive but, usually generates a call to another method of the Assert class. I find that very annoying because, some times, this makes the test fail instead of being reported as inconclusive. To comment out these extra calls to Assert...
I don't like to see constant strings being concatenated in source code. I know the compiler compiles it into a single string, but I think it sends out the wrong message. However, code generators (like Visual Studio's Unit Test generator) usually generate code with long strings concatenated across...