Shaun Xu

The Sheep-Pen of the Shaun



Shaun, the author of this blog is a semi-geek, clumsy developer, passionate speaker and incapable architect with about 10 years’ experience in .NET and JavaScript. He hopes to prove that software development is art rather than manufacturing. He's into cloud computing platform and technologies (Windows Azure, Amazon and Aliyun) and right now, Shaun is being attracted by JavaScript (Angular.js and Node.js) and he likes it.

Shaun is working at Worktile Inc. as the chief architect for overall design and develop worktile, a web-based collaboration and task management tool, and lesschat, a real-time communication aggregation tool.


My Stats

  • Posts - 122
  • Comments - 622
  • Trackbacks - 0

Tag Cloud

Recent Comments

Recent Posts


Post Categories

Image Galleries



Last several weeks I was writing some unit test codes against a legacy class. This class was designed as a static class without any tests. When I tried to add test codes I found as it's a static class, some status was remained when some test methods were invoked, which might failed some following methods. So I need to reset all status (public and private) before each test methods. If the status was stored in public properties of this static class, it should be very easy to reset. Just set NULL to ......


Unit test is very important in modern software development, especially after adopted agile. Microsoft had added the unit test support since the Visual Studio 2008. Then with some enhancement and improvement unit test became easier in Visual Studio 2010. At the mean time, Microsoft provides its own test framework, a.k.a MsTest, which is one of the most popular frameworks. But it’s a little bit strange that Microsoft haven’t shipped any mock framework until now. From Peter Provost’s post we found that ......