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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

Foundations: Unit Testing Workflows And Activities

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

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




View Complete Post


More Related Resource Links

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 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: Versioning Workflows

  

Developers often struggle with versioning workflows and their related classes. Matt Milner discusses the core issues related to workflow versioning and provides recommendations for making changes to workflow definitions, activities, and workflow services.

Matthew Milner

MSDN Magazine May 2009


Foundations: Error Handling In Workflows

  

Workflows often define long-running processes and an unhandled failure usually means termination. Avoid this scenario by handling exceptions properly.

Matt Milner

MSDN Magazine February 2009


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


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

  

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

James Avery

MSDN Magazine February 2008


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: 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


Foundations: ActivityExecutionContext in Workflows

  

This month Matt Milner explains a critical component in the execution, persistence, and compensation of workflows.

Matt Milner

MSDN Magazine June 2007


Windows Workflow: Build Custom Activities To Extend The Reach Of Your Workflows

  

This article covers the core components required for building custom activities in Windows Workflow Foundation.

Matt Milner

MSDN Magazine December 2006


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.
Categories: 
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