NUNIT - Testing your Application. NUnit Tool – Used for Test driven development Lets create a sample banking class named account which supports operations.

Slides:



Advertisements
Similar presentations
Distributed Systems Tutorial 1 - Getting Started with Visual C#.NET.
Advertisements

Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
fmsinc.com/dotnet 1 of 13 fmsinc.com/dotnet 2 of 13 Improving.NET code one line at a time.
Created by Josh Ziegler
LaMothe DirectX Game in Visual Studio 2008 Matthew Sable.
Direct Deposit Set Up. You should allow a minimum of 3-4 weeks before being able to implement this process.
Tutorial on Visual Studio express Introduction Visual Studio Express Editions are a new line of Microsoft development Tools. This line of products.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
When running the CTAS MS Access database modules you may see this security warning This indicates that all scripting within the database has been disabled.
Who wants to be a Millionaire? Click to begin game.
Introduction to VB.NET Tonga Institute of Higher Education.
SENG 403, Winter 2012 SENG 403 – Winter  Exploring unit-testing frameworks in.NET  Writing our first test with NUnit  Unit Testing in Visual.
Moving & Copying Web Applications 1. 2 Why Do We Need to Copy or Move a Web Application?  So you can run someone else’s sample code.  So you can backup.
ACM/JETT Workshop - August 4-5, ExceptionHandling and User Interfaces (Event Delegation, Inner classes) using Swing.
Using Visual Studio 2013 An Integrated Development Environment (IDE)
Performance testing with JMeter.  100% pure Java desktop application  Designed to load test client/server software (such as a web application )  JMeter.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Computer Programming for Engineers Introduction to Programming in C Language on Visual C Platform Intro. Comp. Prog. C-Language1.
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
Mohammadreza Asghari Oskoei University of Allameh 2012 Introduction to Visual Studio 2010.
How to upload files to Altervista Overview:
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
Creating and running a Java program. Eclipse Interactive Development Environment (IDE)  Eclipse is an Interactive Development Environment (IDE) for Java.
Testing Chapter 10. Types of Testing Test typeEnsures that Unit testEach independent piece of code works correctly. Integration testAll units work together.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
File Input and Output (I/O) Engineering 1D04, Teaching Session 7.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
How to process a payroll in ISIS. Step 1: Choose Payroll, enter your username & password, and click Sign In.
NUNIT Navaneeth Rajkumar Open Source Tools Team Project Central.Net.
How to take limit Ph: 022/ – 022/ Time: Mon to Fri ( 09:00 am to 7:00 pm) Sat: (10:00 to 6:00) Sunday and Bank.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
1 10/15/04CS150 Introduction to Computer Science 1 Reading from and Writing to Files Part 2.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Open project in Microsoft Visual Studio → build program in “Release” mode.
Chapter 2: Develop A One Page Web Application Liu, Jie Professor Department of Computer Science Western Oregon University
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
How to run source code For scxml visual editor tool Author : Gui Xun Long
Check Lingo A personal check is a written form that states a written amount to withdraw directly from the payer’s account.
Strings in C++/CLI us/library/system.string.aspxhttp://msdn.microsoft.com/en- us/library/system.string.aspx public: static.
Fix: Windows 10 Error Code 0x in Mail App u/6/b/ /alexwaston14/reimage-system-repair/ /pages/Reimage-Repair-Tool/
Software Engineering Algorithms, Compilers, & Lifecycle.
DEVRY CIS 170 C I L AB 6 OF 7 M ENU -D RIVEN A PPLICATION Check this A+ tutorial guideline at
Source Code Control For CSE 3902 By: Matt Boggus.
Subversion Subversion is a brand of version control software that is frequently used to store the code and documentation of a project so as to permit.
Navaneeth Rajkumar Open Source Tools Team Project Central.Net
Test-driven development
OpenGL project setup.
Download TPL.zip to some directory
Spam Database Tool Use The purpose of this Tool is to Store all SPAM Numbers in Database for matching and excluding from CDRs. Note All files will be stored.
Managing results files
Some Tips for Using Eclipse
Thank you for your interest in the Total .NET Developer Suite from FMS. fmsinc.com/dotnet 1 of 13.
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
CIS16 Application Development Programming with Visual Basic
1. Open Visual Studio 2008.
ms vısual studıo 2008-Introductıon TUTORIAL
HOW TO CREATE A CLASS Steps:
Exercise 5: Scoring Beginners FLUKA Course.
Social Media And Global Computing Creating DLLs with Visual Studio
CSC235 - Visual Studio Tutorial
Mobile and Web Programming
Presentation transcript:

NUNIT - Testing your Application

NUnit Tool – Used for Test driven development Lets create a sample banking class named account which supports operations to deposit, withdraw or transfer funds. To get started, lets create a new project, and select project type as Visual C# - Class Library Also give the location as C:\Documents and Settings\smktb\My Documents\Visual Studio 2005\Projects -- with your respective username and give the name to the Class Library as TestNUnit

New Class Library

Rename the class name to Account.cs from Class1.cs

Add NUnit Reference by selecting your project name, right click and add reference as shown below

Add a new class “TestAccount.cs” and add the below code. Also add the namespace “using NUnit.Framework” and then build the solution

Start NUnit GUI from Programs-Applications-NUnit-Net-2.0 – NUnit GUI. Click on File-Open-Select the folder where your program is stored, go to the bin directory and select TestNUnit.dll

Click on Run to check the output. In this case, the test case will fail, as we did not invoke destination.Deposit(amount).

In order to correct the error, lets uncomment the line in Account.cs file which says “destination.Deposit(amount)”. Important points to note is that [TestFxture] denotes that the corresponding class contains a “Test Case” and [Test] indicates that the corresponding function is a test case