Home / ASP.NET Weblogs

Browse by Tags

Related Posts

  • TypeMock: How to Make Reflective Mocks More Natural

    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, 12:00 AM
    Filed under: UnitTests, Testing, TypeMock, Tools, SoftDev, MVP, MSDN, Microsoft, .NET, C#, LINQ
  • How To Set Elements Of An Array Of A Private Type Using Visual Studio Shadows

    Visual Studio uses Publicize to create accessors public for private members and types of a type. But when you try to set elements of a private array of elements of a private type, things get complicated. Imagine this hypothetic class to test: public static class MyClass { private static readonly MyInnerClass...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 01-19-2010, 12:00 AM
    Filed under: Testing, MSDN, Microsoft, .NET, C#, VisualStudio, LINQ, VisualStudio2008, VisualStudio2010, TipsAndTricks, .NET2.0, .NET3.5, .NET4.0
Page 1 of 1 (2 items)