Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Thursday, January 10, 2008

Mole for Visual Studio



I came across a very useful tool called "Mole for Visual Studio" that allow you to visualize the data easily. The project that I am working right now has about 8 level deep in one ASP.NET page. It is hard to keep track of all the objects that created at different the levels. Mole for Visual Studio works like a charm.

Here is the link to the screenshot.

Monday, January 07, 2008

Setting the timeout value when doing unit testing

It is actually quite easy to set the timeout for Microsoft Unit Test. It is shown as the following which set the timeout to 10 minutes:

[TestMethod]
[Timeout(600000)]
public void QuickSearchRegressionTestWithThread() {… }

Actually it the following link provides the comparison of all the fixtures of all the popular unit test suites for the .NET framework.

Thursday, October 12, 2006

I tumbled into Aspect-oriented programming. It is very interesting concept. The basic idea is to decorate implicitly or explicitly classes or methods (or event statements) to trigger events which will be intercepted across the program.

The immediate use I can think of is logging, transaction and security checking. However some of these aspects had been addressed in C# 2.0 through declarative method and class attributes. I am wondering how much C# will be evolved to address the other aspects of the Aspect-oriented programming.