C# Unit Testing
Course
In Carshalton
Description
-
Type
Course
-
Location
Carshalton
-
Duration
2 Days
At the end of the course student will know. about NUnit's role in C# testing. how to setup, integrate and work with NUnit. how to design, implement and carry out NUnit tests. follow best practices in testing and software development. improve their effectiveness in software testing and the quality of the code they are developing. Suitable for: The course is aimed at C# developers, quality-assurance engineers, and project managers. Students are expected to have a good understanding of C# and .Net technology, as well as some familiarity with testing concepts (e.g. unit, integration, functional, and load testing)
Facilities
Location
Start date
Start date
Reviews
Course programme
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.
Course Benefits
At the end of the course student will know
- about NUnit's role in C# testing
- how to setup, integrate and work with NUnit
- how to design, implement and carry out NUnit tests
- follow best practices in testing and software development
- improve their effectiveness in software testing and the quality of the code they are developing
Key Delivery
Instructor led in-house training with a great deal of hands-on practice.
Course Contents
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
- 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
- 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)
- Best Practices with NUnit and TDD
- Designing C# code with testing in mind
- Integration and functional testing using NUnit
- Automatic
- Thorough
- Repeatable
- Independent
- Professional
- Quality controlling tests
- Designing for testability
- Refactoring for Testing
- Defining and verifying Class Invariants
- Test Driven Design Strategies
- Testing for Invalid Parameters
- Where to place the test code
- Testing etiquette
- Frequency of testing
- Testing when working with legacy code
- Testing and Code Reviews
C# Unit Testing