unit testing in .net core

9
nit Testing in .NET Core uraj P, MVP VSDT chitect @ Suyati Technologies nuraj

Upload: anuraj-p

Post on 21-Feb-2017

23 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Unit Testing in .NET Core

Unit Testing in .NET CoreAnuraj P, MVP VSDTArchitect @ Suyati Technologies@anuraj

Page 2: Unit Testing in .NET Core

What is Unit Testing? - Unit testing refers to the practice of testing certain functions and areas or units of our code.

Page 3: Unit Testing in .NET Core

Tools Required

• Testing Framework• Mocking Framework• Test Runner

Page 4: Unit Testing in .NET Core

Testing Framework - APIs & SDKs helps developers to write unit test code.

Page 5: Unit Testing in .NET Core

Mocking Framework - Mock objects are simulated objects that mimic the behavior of real objects in controlled ways.

Page 6: Unit Testing in .NET Core

Test Runners – A tool / plugin which helps developers to execute test code.

Page 7: Unit Testing in .NET Core

Unit Tests in .NET Core

dotnet new –t xunittestdotnet restoredotnet test

Page 8: Unit Testing in .NET Core

Questions?

Page 9: Unit Testing in .NET Core

Thank you