In Market Invoice, there are many places where async and await are used. Recently, I introduced a bug that an operation gets deadlocked by replacing await with… Read more “C#’s async, await, and .Result”
It’s a simple job at a glance, and it should be. But we had a bug with that feature. You open a document on Huddle and it should be… Read more “Opening an office document from Code”
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.
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… Read more “Handling Sandwich Code in C#”
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… Read more “Testing private method in unit testing”
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… Read more “File is rejected by a third-party system, when it is utf-8 encoded with BOM”