C# Unit Testing

Course

Online

Price on request

Description

  • Type

    Course

  • Methodology

    Online

The course provides a thorough introduction to the NUnit testing framework. It covers the concepts underlying unit testing, and the way these concepts are realised in the NUnit framework. The procedures for setting up NUnit and using it in C# development projects are covered in detail. The hands on exercises will familiarise students with test-driven development as a methodology for implementing highly reliable C# code.

Questions & Answers

Add your question

Our advisors and other users will be able to reply to you

Who would you like to address this question to?

Fill in your details to get a reply

We will only publish your name and question

Reviews

Subjects

  • IT
  • C++
  • Testing

Course programme

Overview of NUnit

  • Basic concepts
  • JUnit 3 vs. JUnit 4 vs. TestNG
  • Starting with NUnit
  • Using NUnit within Visual Studio
  • Structuring Unit Tests
  • Using NUnit Asserts
  • NUnit Test Composition
  • Custom Asserts in NUnit
  • NUnit Exceptions and exception testing
  • Naming
  • The NUnit Test Skeleton

What to test for - Right BICEP

  • Right results
  • Boundary Conditions - CORRECT
    • Conformance
    • Ordering
    • Range
    • Reference
    • Existence
    • Cardinality
    • Time
  • Inverse Relationships - checking for
  • Cross checking
  • Error conditions - forcing of
  • Preformance characteristics - met

Structuring tests, automating tests, reporting results

  • Composing Test Cases into Test Suites
  • Combining Test Suites
  • Organizing Tests and Test Suites
  • Executing Tests
  • Showing Test Results
  • Integration with Ant
  • Reporting (XML and HTML)

Test-Driven Development (TDD)

  • Best Practices with NUnit and TDD
  • Designing C# code with testing in mind
  • Integration and functional testing using NUnit

Characteristics of Good Tests

  • Automatic
  • Thorough
  • Repeatable
  • Independent
  • Professional
  • Quality controlling tests

Testing and Design

  • Designing for testability
  • Refactoring for Testing
  • Defining and verifying Class Invariants
  • Test Driven Design Strategies
  • Testing for Invalid Parameters

Testing and Project Planning and Management

  • Where to place the test code
  • Testing etiquette
  • Frequency of testing
  • Testing when working with legacy code
  • Testing and Code Reviews

C# Unit Testing

Price on request