Lecture overview -- Keyboard shortcut: 'u'  Previous page: Unit Testing -- Keyboard shortcut: 'p'  Next page: A Unit Test example in C# (2) -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 22 : 35
Object-oriented Programming in C#
Test of Object-oriented Programs
A Unit Test example in C# (1)

Unit test of the class BankAccount

 

/user/normark/oop-csharp-1/sources/c-sharp/unit-testing/bank/bank-account.csThe class BankAccount.


/user/normark/oop-csharp-1/sources/c-sharp/unit-testing/bank/bank-account-test.csThe class BankAccountTest.


/user/normark/oop-csharp-1/sources/c-sharp/unit-testing/bank/compilingCompilation and execution.


A screenshot of NUnit - all tests are successful