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...
Note: Code in italics is not actual C# 3.0 syntax. Local Variable Type Inference C# 3.0 brought us local variable type inference mainly because of LINQ . The output of a query can vary from an IEnumerable<T> or an IQueryable<T> to a single instance of T where T can even be a projection which...
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...
Web Client Software Factory 2.0 February 2008 Release Resources MSDN site: http://msdn.microsoft.com/webclientfactory Community site: http://www.codeplex.com/websf About the Deliverable The Web Client Software Factory (WCSF) provides a set of guidance for architects and developers building enterprise...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
02-29-2008
Filed under: .NET, Architecture, ASP.NET, Community, SoftDev, Microsoft, MSDN, Web, WCSF, Tools, VisualStudio, PnP, SoftwareFactories, PageFlow, AJAX
Microsoft Portugal will be hosting Techdays 2008 from Mars 12 nd to 14 th , right after the Portuguese launch of Microsoft Visual Studio 2008 , Microsoft SQL Server 2008 and Microsoft Windows Server 2008 on Mars 11 th . This is the biggest and greatest tech event in Portugal and there will be lots of...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
02-06-2008
Filed under: .NET, Community, Events, Microsoft, MSDN, MVP, SQLServer, VisualStudio, Windows, Techdays, TechdaysPT08
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...
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
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...