Page 34 : 35
Object-oriented Programming in C#
Test of Object-oriented Programs
* Program Testing in General
Introduction to Program Testing
Overview of Program Testing
Testability
Test Utopia
From Program Test to Program Proof
* White Box Testing
White box testing
Basis Path Testing
Cyclomatic Complexity - flow chart
Cyclomatic Complexity - flow graph
Cyclomatic Complexity - Metric and Test Cases
* Black Box Testing
Black box testing
Input to a Black Box Test
Example of Equivalence Partitioning (1)
Example of Equivalence Partitioning (2)
Regression testing
* Unit Test of Object-oriented Programs
Test Units
Unit Testing
A Unit Test example in C# (1)
A Unit Test example in C# (2)
NUnit for C#
NUnit Attributes
NUnit Assertions
Unit Test Concepts
Another Unit Test example in C#
Unit test of struct Interval
Test Scaffolding
The Background and Context of Unit Testing
Test of Object-oriented programs
Test Driven Development
Unit Test Recommendation
Test Recommendations in your Project
Unit Test Recommendation
Test case independence
Each test should examine a single program aspect - in isolation from other aspects
Test simplicity
Test code should be simple
Each test should only activate a single assertion
Contrary to most examples that have been shown earlier in this lecture
Because the first assertion that fails prevents execution of additional assertions
Testing of test code is
simply too much
Test coverage
Each public operation in a class should have at least one associated test
Typically a number of tests per operations
Indeed a very loose meaning of coverage!
Regression test
For each modification - at a reasonable grain size - re-execute all tests