Let us help you find the training program you are looking for.

If you can't find what you are looking for, contact us, we'll help you find it. We have over 800 training programs to choose from.

Advanced C#: Test Driving Development and Unit Testing

  • Course Code: Programming & Development - Advanced C#: Test Driving Development and Unit Testing
  • Course Dates: Contact us to schedule.
  • Course Category: Programming and Development Duration: 2 Days Audience: This course is designed as a follow on to the Developing Applications in C# course. Students familiar with basic C# syntax will benefit from this course

Audience:  

This course is designed as a follow on to the Developing Applications in C# course.  Students familiar with basic C# syntax will benefit from this course 

Level:  

230 

Length: 

2 days 

Overview 

Students who attend this course will leave the course armed with the skills they require to develop solid C# programs, using sound coding testing techniques and best coding practices.  

This course quickly introduces developers to the concepts of Agile Programming and how continuous testing is an integral part of those concepts.  Developers are then shown the features of NUnit and educates them regarding NUnit’s strengths and weaknesses. NUnit makes it possible to write higher-quality C# code. It is a powerful tool designed to support robust, predictable, and automated testing development in the C# enterprise application arena..  This course is rich in hands-on opportunities (50%). 

Outline 

  • Introductions 
  • Overview of Test-driven Development 
  • Test, code, refactor, repeat 
  • The ROI of TDD 
    • Rationale for Test-driven Development  
    • The Process of TDD  
    • Advantages to TDD 
    • Side-effects of TDD 
    • Observations About Tests 
  • Rationale 
  • Advantages 
  • Unit Testing 
    • What is it? 
    • Purpose 
    • Vs Integration test 
    • Strategies 
  • NUnit 
  • Overview 
  • Goals 
  • Features 
  • Subject under test 
  • Assertions 
  • Running tests 
  • Annotations 
  • Lifecycle 
  • Setup 
  • Teardown 
  • Expected Exceptions 
  • Timeouts 
  • Parameterized Tests
  • Data driven 
  • Mocking 
  • Framework Options 
    • Moq 
    • TypeMock 
    • RhinoMock 
    • NSubstitute 
  • NSubstitute 
    • Using NSubstitute to mock objects in unit testing 
  • Refactoring 
View All Courses

    Course Inquiry

    Fill in the details below and we will get back to you as quickly as we can.

    Interested in any of these related courses?