Training

 

 

Popular Courses

Browse Our Free Resources

  • whitepapers
  • whitepapers
  • webinars
  • blogs

Our Locations

Training Centres

Vancouver, BC
Calgary, AB
Edmonton, AB
Toronto, ON
Ottawa, ON
Montreal, QC
Hunt Valley
Columbia

locations map

Calgary

550 6th Av SW
Suite 475
Calgary, AB
T2P 0S2

Toronto

821A Bloor Street West
Toronto, ON
M6G 1M1

Vancouver

409 Granville St
Suite 902
Vancouver, BC
V6C 1T2

U.S. Office

436 York Road
Suite 1
Jenkintown, PA
19046

Other Locations

Dallas, TX
Miami, FL

Home > Training > Testing > Test-Driven Development Using Visual Studio 2008 and C# Training

Test-Driven Development Using Visual Studio 2008 and C# Training

Course#: WA1900

An emerging software engineering paradigm is test-driven development, where tests are written early and testing is performed continuously during the development process. Problems are discovered early and corrected when they are found. This one-day course for developers explains the methodology of test-driven development and the use of the unit testing framework that comes with Visual Studio 2008 Professional Edition and higher.

Audience

Developers needing to become familiar with unit testing and its standards.

Prerequisites

A basic knowledge of the .NET Framework and experience programming in C# with Visual Studio.

Duration

One Day

Outline of WA1900 Test-Driven Development Using Visual Studio 2008 and C# Training

1. Test-Driven Development

  • Test-Driven Development
  • Functional Tests
  • Unit Tests
  • Test Automation
  • Rules for TDD
  • Implications of TDD
  • Simple Design
  • Refactoring
  • Regression Testing
  • Test List
  • Red/Green/Refactor
  • Using the Unit Testing Framework
  • Testing with Unit Testing Framework
  • A Unit Testing Framework Test Drive
  • IQueue Interface and Stub Class
  • Test List for Queue
  • A Second Test
  • More Queue Functionality
  • TDD with Legacy Code
  • Acme Travel Agency Case Study

2. Visual Studio Unit Testing Fundamentals

  • Structure of Unit Tests
  • Assertions
  • Unit Testing Framework
  • Unit Testing Framework Namespace
  • Assert Class
  • Assert.AreEqual()
  • More Assert Methods
  • CollectionAssert Class
  • StringAssert Class
  • Test Case
  • Test Methods
  • Test Class
  • Test Runner
  • Command Line Test Runner
  • Ignoring Tests
  • Using the Ignore Attribute
  • Test Initialization and Cleanup
  • Class Initialization and Cleanup

3. More about Unit Testing Framework

  • Expected Exceptions
  • Enqueue and Dequeue
  • Tests for Enqueue and Dequeue
  • ToArray()
  • Test of ToArray()
  • Exceptions Dialog
  • Custom Asserts
  • Implementing a Custom Assert
  • Test Lists
  • Test List Hierarchy
  • Debugging Unit Tests
  • Running Tests at the Command Line
  • MSTest.exe Command Line Options
  • Test Lists at the Command Line
  • Refactoring
  • Collection Class Implementation
  • Testing the New Version
We regularly offer classes in these and other cities. Atlanta, Austin, Baltimore, Calgary, Chicago, Cleveland, Dallas, Denver, Detroit, Houston, Jacksonville, Miami, Montreal, New York City, Orlando, Ottawa, Philadelphia, Phoenix, Pittsburgh, Seattle, Toronto, Vancouver, Washington DC.
*Your name:

*Your e-mail:

*Phone:

*Company name:

Additional notes:

We have received your message. A sales representative will contact you soon.

Thank you!.

more details
buy this course

Register for a courseware sample

It's simple, and free.

 

Thank You!

You will receive an email shortly containing a link to download the requested sample of the labs for this course.