Lecture overview -- Keyboard shortcut: 'u'  Previous page: A Unit Test example in C# (2) -- Keyboard shortcut: 'p'  Next page: NUnit Attributes -- 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 24 : 35
Object-oriented Programming in C#
Test of Object-oriented Programs
NUnit for C#

NUnit is a unit testing framework for C#

  • NUnit characteristics

    • Pieces of test programs are marked by means of particular attributes

    • Correctness is stated by use of assertions: Methods with boolean result

      • Nunit provides a large amount of different assertions

    • The NUnit tools are able to execute the marked test in one or more assemblies

      • In this context, an assembly is typically a dll file

    • Nunit tools

      • A Console Runner

      • A GUI Runner

Go to exerciseInstall Nunit
Go to exerciseGive Nunit a Try