.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Toolbox: Powerful Text Editing, Web Testing in .NET, Extended Unit Testing, and More

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

Powerful Text Editing, Web Testing in .NET, Extended Unit Testing, and More

James Avery

MSDN Magazine February 2008

View Complete Post

More Related Resource Links

Toolbox: Advanced Unit Testing, Object Mocking, Profiling Your Apps and More


This month we look at advanced unit testing, object mocking, profiling, and lots more.

James Avery

MSDN Magazine January 2008

Unit Testing SharePoint - Past, Present, and Sporm

As I described in SharePoint: The Wild West of Software Development there is a serious problem when you develop for SharePoint: ensuring quality through unit testing is really, really hard. And that's where a new open source tool just released today called sporm (SharePoint Object Relational Mapper) comes in. While sporm provides many benefits besides simplified unit testing I wanted to focus on this topic first, because sporm's approach, which models the entity framework in the way it supports POCO's, is a unique feature not available with other SharePoint tools like LINQ to SharePoint.

Foundations: Unit Testing Workflows And Activities


Matt Milner takes a look at some of the challenges and techniques related to testing Windows Workflow Foundation activities, workflows, and associated components.

Matt Milner

MSDN Magazine November 2008

Toolbox: Cross Browser Testing, Mock Objects, and Raymond Chen


This month test your web site on many platforms and browsers without setting up a test environment, use mock objects for unit testing, and visit Raymond Chen.

Scott Mitchell

MSDN Magazine June 2008

Unit Testing: Apply Test-Driven Development to your Database Projects


Jamie Laflen extols the benefits of TDD when applied to database development-and supplies some useful techniques along the way.

Jamie Laflen

MSDN Magazine Launch 2008

WinUnit: Simplified Unit Testing for Native C++ Applications


Maria Blees introduces WinUnit, a handy new unit testing tool for native C++ projects.

Maria Blees

MSDN Magazine February 2008

Unit Testing: Exploring The Continuum Of Test Doubles


Creating and using mock component servers simplifies unit testing. Use these examples to get started.

Mark Seemann

MSDN Magazine September 2007

Unit Testing Tips: Write Maintainable Unit Tests That Will Save You Time And Tears


Everybody's talking about unit testing and you want to get into the game too. But you don't want the tests to take up all your development time and energy. Fortunately Roy Osherove is here to dispel some testing myths and put you on the road to efficient unit testing.

Roy Osherove

MSDN Magazine January 2006

Know Thy Code: Simplify Data Layer Unit Testing using Enterprise Services


If you want to employ unit testing and test-driven development techniques in your database application development process, you'll have different factors to consider than you do when you're not involving a database. For example, you have to maintain a consistent state within the database and be able to roll back transactions when necessary. This article shows you how to get the best of unit testing for your database apps in a safe, usable manner.

Roy Osherove

MSDN Magazine June 2005

Unit Testing: Mock Objects to the Rescue! Test Your .NET Code with NMock


The problem: unit testing libraries, especially data access components, that have a complex set of dependencies. The solution: providing a dynamic mock implementation of your data access classes. Here the author explains just how to make testing easier and more reliable using NMock.

Mark Seemann

MSDN Magazine October 2004

System.EntryPointNotFoundException: Entry point was not found. when unit testing html helpers


I'm trying to unit test a very simple html helper but keep getting the following exception:

System.EntryPointNotFoundException: Entry point was not found.

public static string AdditionalUsersDropDownList( this HtmlHelper helper, int additionalUsers )


Dictionary<int, string> items = new Dictionary<int, string>( );

items.Add( 0, "None" );

for ( int i = 1; i <= 30; i++ )


items.Add( i, i.ToString( ) );


SelectList list =  new SelectList( items, "Key", "Value", additionalUsers );

return helper.DropDownList( "AdditionalUsers", list );


Unit Testing a ASP.Net Web Application

Hi, I want to imlement the Unit Testing in my asp.net web application. How to identify the scope of this. I mean, How should i start on this front. 

Unit Testing Asp.NET Applications with with Moles and Pex

It has been a while since my last post. I will try to recover, there are some things I would like to talk about. For now, check out this fine tutorial for unit testing ASP.NET applications using Pex and Moles: http://research.microsoft.com/en-us/projects/pex/molesaspnet.pdf. Of course, don't forget Microsoft's Lightweight Automation Test Framework and WatiN! I will post on these great libraries later on.

Unit Testing Delay Activity in workflows 4.0

I need to run unit test scripts for workflows developed in workflows 4.0. I have requirement to unit test the whole workflow including the delay activity.   If the delay activity contains for example for 15 days delay and after that it perform certain other tasks. In this scenario I cannot wait for 15 days for unit test the workflows.   Please let me know How to unit test workflows in case of delay activity? Can I modify the pending timer filed in instance table to advance time?  rajeevkalyan

Unit testing is locking up WCF service?

I am trying to write some unit tests (more integration tests actually) to hit a live IIS server hosting my WCF service.  Whenever I run a test though, if one of my Assert statements fails on the client side, my WCF service seems to lock up- and I have to do an iisreset to get things back online. For example, I have in a test method 3 calls from my service client to WCF service- Call1, Call2 and Call3.  The first time through, Call1 works great, Call2 works great and then Call3 fires the Assert because some data is not correct.  On the next time through the test, Call1 fails with the following error:   "An exception of type 'System.ServiceModel.CommunicationException' occurred in mscorlib.dll but was not handled in user code Additional information: An error occurred while receiving the HTTP response to http://localhost/Kiosk/KioskSite.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details."   After doing an iisreset everything is okay again. Anyone have any ideas what might be going on?

Unit Testing and localization: Could not load file or assembly 'App_GlobalResources'

I recently added an App_GlobalResources folder to an MVC web application. In one of the controllers I access a file in this folder called Strings.resx using the syntax:  Resources.Strings.Foo , where Foo is an entry in this resource file. The site runs without any problems but when I start the MbUnit test, which is in a separate project, It complains that it can't find App_GlobalResources -  an error which is thrown from within the generated Strings.designer.cs file. The fixture is using a mocked request object to test the action on the controller that tries to access the resource.I've searched around and surprisingly there doesn't appear to be a good solution to this. The best solution I could find mentioned putting the test fixtures into the web application project, which I really don't want to do.How do I solve this problem? Thanks in advance. 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend