This document provides an introduction to unit testing using Nunit. It discusses what unit testing is, the benefits of unit testing, and what is needed to perform unit testing. It then focuses on Nunit, explaining that Nunit is a unit testing framework for .NET languages. It provides hands-on examples of creating a test project using Nunit to test methods in a BMI calculator application. It demonstrates running tests using both the Nunit graphical user interface and console modes.
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Unit Testing Using N Unit
1. Unit Testing using NunitIntroduction to Art of Testing Presenter: GauravArora Email: admin@hyderabadtechies.info Note: This presentation is presented with courtesy of HyderabadTechies.info
2. Topics What is unit testing? Step-by-step Overview What is Nunit? Hands-on using Nunit
3. What is unit testing? Unit Testing is a way/method by which individual units of source code/application are tested to determine if they are fit for use. In other words, we can say method by which individual test one thing at a time [i.e. units] without touching external sources [DB, external files, libraries etc.]
8. What is Nunit? Nunit is unit-testing framework and supports all .Net languages. It has been written entirely in C# [csharp]. Refer - http://www.nunit.org/
9. Start with Nunit Before start, we need nUnit framework: Download from : http://www.nunit.org/index.php?p=download http://sourceforge.net/projects/nunit/ [after download, install per your choice, not going in details of this chapter here…] For more info : http://www.nunit.org/
10. Pictorial Flow of Nunit nUnit Dll, exe file XML file (Optional) Processing details on the GUI or Command prompt Image : showing [Input & Output]
26. Nunit : CUI Console mode is one of the modes available of Nunit, lets discuss how to run from command [console window]: The command to execute the exe in console mode is nunit-console.exe [filename] [option]
28. Nunit : CUI - Options *Options /Fixture=STR Fixture to test /config=STR project configuration to load /XML=STR Name of XML output file /transform=STR name of transform file /xmlConsoledisplay XML to the console /output=STR File to receive test output (short :/out=STR) /err=STR File to receive test error output /labels Label each test in stdout /include = STR list of categories to include /exclude = STR list of categories to exclude /noshadow disable shadow option /thread runs thread on a separate thread /wait waitfor input before closing console window /nologoDo not display the logo /help Display help (short format: /?)
29. Nunit : GUI Go to your installed path of nunit framework and from bin folder select ‘nunit.exe’ If you installed nunit from msi package just go to program and select Nunit