Page 16 : 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
Example of Equivalence Partitioning (1)
// Exchange element i and j in table
public void SwapElements<T>(T[] table, int i, int j){ ... }
The method signature SwapElements.
Equivalence partitions - all combinations of
table
table
is empty,
table
is singular,
table
with two or more elements
i
and
j
One of
i
and
j
are outside the bounds of
table
i
inside and
j
outside,
i
outside and
j
inside, both are outside
Both
i
and
j
are inside the bounds of
table
i < j
,
i > j
,
i = j
Use of a stronger precondition limits the number of test cases