Tag: C#
May 20 2020
The Journey to One .NET – Live
Nov 21 2011
Unit Testing Private Static Methods in C#
I had never needed to unit test a private static class method in C# before, but it turns out that Microsoft created a special object type to handle just such a case. To test the private static method DetermineFilename (that takes filePath as a string parameter and returns a string) in the FileManager class, do …
Sep 02 2011
Disable C# “var” Recommendation in ReSharper
I have been trying to use type names instead of “var” in my C# code lately. However, ReSharper wants me to convert every type name in a declaration to “var”. The squiggles under my type names were driving me nuts, so I decided to dig into the settings to turn this off. To disable these …
