Gautam Goenka (MSFT) : Logging a message in test result as part of an...
Logging a message in test result as part of an automated test Multiple folks have asked in forums on how to log a message from a Coded UI Test for tracing\debugging purpose. I know of as many as 5...
View ArticleUnit Testing Entity Framework Video - Unit Testing Database Applications...
Muhammad Mosa prepared a video on examples for unit testing EF apps. Entity framework has been considered hard to test, but Muhammad shows how to do it easily with Typemock Isolator. You can download...
View ArticleNizar’s .NET Blog » Refactoring for Unit Testing
Imagine the following (which you’ve very likely run into in the past): You join a new company and inherit a humongous existing code base. You are told to add some new functionalities without of course...
View ArticleDo Unit Test and Integration Test from same test code using Conditional...
Do Unit Test and Integration Test from same test code using Conditional Compilation You usually write unit test and integration test code separately using different technologies. For example, for unit...
View ArticleUnit Testing and Integration Testing in real projects
Unit Testing and Integration Testing in real projects I am yet to find a proper sample on how to do realistic Test Driven Development (TDD) and how to write proper unit tests for complex business...
View ArticleHow to convince developers and management to use automated unit test for AJAX...
How to convince developers and management to use automated unit test for AJAX websites Everyone agrees that unit testing is a good thing, we should all write unit tests. We read articles and blogs to...
View ArticleUsing Mocking Framework - Moq
This post will tell how to incorporate one of the popular & free object mocking framework, Moq in your unit tests.
View ArticleHow to convince developers and management to use automated test instead of...
Learn ways to convince devs and management to move away from manual testing to automated unit, integration testing. See some convincing graphs to put in a powerpoint.
View ArticleCode Contracts: Unit testing contracted code
Code contracts and unit tests are not replacements for each other. They both have different purpose and different nature. It does not matter if you are using code contracts or not – you still have to...
View ArticleFinally! Entity Framework working in fully disconnected N-tier web app
Entity Framework was supposed to solve the problem of Linq to SQL, which requires endless hacks to make it work in n-tier world. Not only did Entity Framework solve none of the L2S problems, but also...
View ArticleTip – When writing custom assertion methods – Keep your assertion stack trace...
I have bumped in to a couple of custom assertion methods which lets the assertion stack trace contain the assertion method itself. Hence, if I use, e.g. Testdriven.Net, I might double-click on the...
View ArticleWrite your Tests in RSpec with IronRuby - Kazi Manzur Rashid
[Note: This is not a continuation of my previous post, treat it as an experiment out in the wild. ] Lets consider the following class, a fictitious Fund Transfer Service: view source print? 01 public...
View ArticleUnit Testing Dynamic XAP Files
By now, you probably are aware that you can dynamically load XAP files using the Managed Extensibility Framework (MEF) within your Silverlight applications. Have you been scratching your head, however,...
View ArticleBinaryThought Blog | Pex Power Tools
An introduction to the Pex Power Tools for Visual Studio 2010.
View ArticleUnit Test using test doubles, aka Mock, Stub, Fake, Dummy
Following my post about Application Acceptance Testing, we went, beginning of that week, in some very interesting discussions during a meeting at Innoveo in which I presented the differences between...
View ArticleRhino Mocks for testing
Mock object is making to mock implementation with the custom objects. So many mock objcts available like NMock,NMock2,EasyMock, Rhino Mocks,TypeMock . But i am using the Rhino Mock. This is supports...
View ArticleHow To Unit Test Workflows–Mocking Activities - Ron Jacobs
Suppose you want to unit test a workflow that has some external dependency like a database, web service, file or some other thing that makes testing inconvenient. The need to eliminate external...
View ArticleSilverlight Unit Test For Phone - Jesse Liberty
There has been some confusion about how to make the Silverlight Unit Tests work on FAILEDUNITTESTWindows Phone. The latest release of the Silverlight Unit Tests comes with the Silverlight Toolkit, and...
View ArticleAutoMoq Introduction
AutoMoq is an “auto-mocking” container that automatically creates for Moq any fake objects that are necessary to instantiate the class under test.
View ArticleUsing the InternetExplorerDriver for WebDriver
Are you getting this error when trying to use the InternetExplorerDriver for WebDriver (Selenium 2.0)? "System.InvalidOperationException: Unexpected error launching Internet Explorer. Protected Mode...
View ArticleHow to Work With Generic Repositories on ASP.NET MVC and Unit Testing Them By...
In this blog post we will see how to work with generic repositories on ASP.NET MVC and unit testing them by mocking with moq
View ArticleTesting DI bootstrappers
While your Dependency Injection bootstrappers - being responsible for gluing your application together - are a vital part of your application, they are seldom put under test. I don't see any reason why...
View Article