Category Archive: HowTo

May
17

Webinar – Speeding Up the development of SharePoint Web Parts

SharePoint_2010_Logo

Many Web Parts in SharePoint render for capturing data that is stored in a SharePoint list. This means that to test the Web Part you have to load the the Web Part within a SharePoint server. Then how do you test it? During this webinar, Richard Fennell will show how you can use Typemock Isolator …

Continue reading »

Permanent link to this article: http://www.typemock.com/blog/2012/05/17/webinar-speeding-up-the-development-of-sharepoint-web-parts/

Apr
17

How To Organize Your Tests

It starts out pretty simple. You want to start writing tests, so you create a library. Before you know it, you’ve got a huge suite. Although there’s some order in the chaos, you probably wish there was some way to make it look better, and even more so, make the team work in a consistent …

Continue reading »

Permanent link to this article: http://www.typemock.com/blog/2012/04/17/how-to-organize-your-tests/

Mar
26

How To Name Your First Test

After your loving grandfather, of course. Just kidding. Naming tests correctly is a skill that can determine the effectiveness of your tests. Yes, really. Effective tests do two things: warn you on the first sign of trouble, and help you fix the problem as soon as possible. The first one everyone knows intuitively. The second …

Continue reading »

Permanent link to this article: http://www.typemock.com/blog/2012/03/26/how-to-name-your-first-test/

Dec
26

How-To: Returning a Class By Value with Isolator++

Isolator++ has two ways to return stuff for a method. It has the ReturnVal to return values, and ReturnPtr to return pointers to objects. What about returning a class by value? Though there’s no API (currently), it’s very easy to do. You use the almighty 10lbs hammer known as DoInstead. Let’s say you have this …

Continue reading »

Permanent link to this article: http://www.typemock.com/blog/2011/12/26/how-to-returning-a-class-by-value-with-isolator/

Sep
01

“Why Too Much Mocking is Bad” and Other Questions

Last webinar, “10 secret unit testing tips” was a blast. There were many questions, some I’ve answered. But then I’ve looked at the clock, and discovered I neglected to answer a few. And since I’m a a man of my word (most of the time), here are the rest of the questions and comments and …

Continue reading »

Permanent link to this article: http://www.typemock.com/blog/2011/09/01/%e2%80%9cwhy-too-much-mocking-is-bad%e2%80%9d-and-other-questions/