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...
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
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...
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...
Visual Studio comes with the a specific set of regular expressions can be used in the Find what field of the its Find and Replace Window . Over the time I've been using Visual Studio I've come up with some tricky regular expressions that I'll be publishing in this page . Feel free to comment...