ReSharper usually doesn’t like it, but you can turn off the inspection for test methods. http://atombrenner.blogspot.co.uk/2010/07/how-to-change-resharper-naming-style.html Then you can do something like this.
Posts Tagged ‘c#’
Get ReSharper To Allow _ Underscore in Test Method Names
Posted in Uncategorized, tagged c#, Resharper, Unit Test on March 19, 2012 | Leave a Comment »
Handling Sandwich Code in C#
Posted in Programming, tagged c#, lamda, sandwich code on June 30, 2011 | Leave a Comment »
What is “Sandwich Code”? I found it in Ruby Koans. Often, you have to do something at the beginning and at the end, even though your main lock is in the middle. Let’s say, you want to retrieve data from database. You have to create a connection, open it, use it to load data, and [...]
Testing private method in unit testing
Posted in Programming, tagged c#, NUnit on November 2, 2010 | Leave a Comment »
Ideally, it is not recommended to test private methods, as complex internals should be kept hidden and only interface be tested. Well, in real world, sometimes, you need to test your private methods, as it performs very important operation. In my case, the method was public and later I changed it to private, since it [...]
File is rejected by a third-party system, when it is utf-8 encoded with BOM
Posted in Programming, tagged c#, DreamMail, StreamWriter on May 28, 2009 | Leave a Comment »
Recently, I had a chance to refactor codes for a system that sends a file to DreamMail. Because we did not touch any FTP functionality, we were complacent and tested it up to where files are exported and sent via FTP. Development is completed and the application was deployed to a testing environment. Very thankfully [...]