About the Academy

In this lesson you will learn about unit testing and apply it using NUnit framework in C#. In general you will be able to:
  • Know what unit test mean
  • Understand NUnit , install and configure it
  • Create NUnit cases with different annotations and run
  • Create test suite using NUnit
  • Use different assertions to show pass and fail tests
Please check the curriculum for more information..

Audience and Requirements

  • QA, BA, programmers  and anyone who is interested to know about unit test and Junit.
  • Needs basic testing and C# programming knowledge.

Training Highlights

  • Mentorship will be provided during and after the training program.
  • You will be working on  different NUnit programs
  • You will practice on interview questions and secession from day one

Curriculum


Module 1: Unit testing introduction

  • 1.1  What unit test mean and importance
  • 1.2  Unit test coverages: code
  • 1.3   branch and statement

Module 2: Nunit introduction

  • 2.1  What is Nunit
  • 2.2  Installing and configuring Nuint in Visual Studio
  • 2.3  Running Nunit

Module 3: A complete Nunit Test in C#(step by step)

  • 3.1  Create your C# project in Visual Studio
  • 3.2  Add Nunit Dll to your Project
  • 3.3  Find Nunit Assembly and check it
  • 3.4  Add a package to your project and give meaningful name like "testCalculator"
  • 3.5  Add a test class in your test package and “using Nunit.Framework;”
  • 3.6  Annotate methods appropriately
  • 3.7  Build and Run the test
  • 3.8  Read the report

Module 4: Assertions

  • 4.1  Equality Assertions
  • 4.2  Identity Assertions
  • 4.3  Comparison Assertions
  • 4.4  Type Assertions
  • 4.5  Condition Assertions
  • 4.6  Utility Assertions
  • 4.7  String Assertions

Module 5: Attributes/ Annotations

  • 5.1  TestFixture
  • 5.2  Test
  • 5.3  Setup
  • 5.4  TearDown
  • 5.5  TestFixtureSetUp
  • 5.6  TestFixtureTearDown
  • 5.7  ExpectedException
  • 5.8  Platform
  • 5.9  Category
  • 5.10  Explicit
  • 5.11  Suite
  • 5.12  Ignore

Module 6: Assumptions

Module 7: Constraints

  • 7.1  Alphabetic list of constraint
  • 7.2  Constraint by category

Module 8: TestCaseData

  • 8.1  Explicit(string)
  • 8.2  Ignore(string)
  • 8.3  Returns
  • 8.4  SetCategory(string)
  • 8.5  SetDescription(string)
  • 8.6  SetName(string)

Module 9: TestFextureData

Module 10: TestContex

  • 10.1  Current context: Out
  • 10.2   Error
  • 10.3   Progress
  • 10.4  Test Parameters: Count
  • 10.5   Name
  • 10.6   this
  • 10.7   Exists
  • 10.8   Get
  • 10.9  Properties of current context
  • 10.10  Others: Result
  • 10.11   Test Directory
  • 10.12   WorkDirectory

Module 11: Assertion Helper

Module 12: ListMaper

Module 13: Running Tests

  • 13.1  Using Visual Studio
  • 13.2  Nunit GUI
  • 13.3  Console runner
  • 13.4  Console Command Line
  • 13.5  Nunit Test Project
  • 13.6  Nunit runner
Request a detailed syllabus.

Get Answers (Answering their questions)

What kind of learning does ITlearn360.com provide?

ITlearn360.com offers instructor-led online live sessions and classroom-based corporate trainings and bootcamps for various courses and certifications to the learners.

Who are the instructors @ITlearn360.com?

@ITlearn360.com, we have an instructor community of industry professionals who are working in leading organizations and are veterans in their respective fields. These experts belong to various industries and are willing to share their talent with learners like you.

Are classes @ITlearn360.com conducted through online video streaming?

Yes, the classes @ITlearn360.com are conducted through online video streaming where there is two-way communication between users and instructors. The users can speak by using a microphone, chat by sending a message through a chat window and share their screens with an instructor. For better understanding, users also get recorded video of the class.

Sign for next demo class