Page 25 : 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
NUnit Attributes
Attributes
[TestFixture]
Marks a class that contains tests
[Test]
Marks a method in a test class. The method becomes a test case.
[SetUp]
Marks a method which is executed
just before each test method
.
At most one such method per test class
[TearDown]
Marks a method which is executed
after each test method
.
At most one such method
Is not executed if a test fails, of if it throws an exception
[TestFixtureSetUp]
Marks a method which is executed once before execution of any test method.
At most one such method
Executed once, before the execution of the first test method in this fixture
[TestFixtureTearDown]
Marks a method which is executed once after all tests are completed.
Executed once, after the execution of the last test method in this fixture
At most one such method
[ExpectedException(ExceptionType)]
Marks a test which is expected to lead to a given Exceptiontype
[Category("name")]
Categorizes a given test fixture or test
Individual categories can be included or excluded in a test-run
[Ignore]
Marks a test method or a test class which (temporarily) should not be executed
Consult the NUnit documentation for the full and exact set of test-related attributes