SlideShare a Scribd company logo
UNIT TEST
MSTEST & NUNIT
¿QUÉ ES?
¿QUÉ ES?
Caso Práctico
Equivalencias
MSTest Attribute NUnit Attribute Purpose
[TestMethod] [Test] Indentifies of an individual unit test
[TestClass] [TestFixture] Identifies of a group of unit tests, all Tests, and Initializations/Clean
Ups must appear after this declaration
[ClassInitialize] [TestFixtureSetUp] Identifies a method which should be called a single time prior to
executing any test in the Test Class/Test Fixture
[ClassCleanup] [TestFixtureTearDown] Identifies a method in to be called a single time following the
execution of the last test in a TestClass/TestFixture
[TestInitialize] [SetUp] Identifies a method to be executed each time before a
TestMethod/Test is executed
[TestCleanUp] [TearDown] Identifies a method to be executed each time after a TestMethod/Test
has executed
[AssemblyInitialize] N/A Identifies a method to be called a single time upon before running
any tests in a Test Assembly
[AssemblyCleanUp] N/A Identifies a method to be called a single time upon after running all
tests in a Test Assembly
Adicional
http://www.fluentassertions.com/
https://www.nuget.org/packages/FluentAsserti
ons/
* DESCARGA ESTA PRESENTACIÓN EN:
WWW.KAIZEN-FORCE.COM
* SÍGUENOS:
WWW.FACEBOOK.COM/KAIZENFORCE
MUCHAS GRACIAS….!!

More Related Content

PPTX
devops_dei
Romain Chalumeau
 
PPTX
TestNG Session presented in PB
Abhishek Yadav
 
PPTX
.Net Unit Testing with Visual Studio 2010
kgayda
 
PDF
JUnit
Li-Wei Cheng
 
PPTX
Power mock
Piyush Mittal
 
PPTX
Automated Testing with CMake, CTest and CDash
Richard Thomson
 
devops_dei
Romain Chalumeau
 
TestNG Session presented in PB
Abhishek Yadav
 
.Net Unit Testing with Visual Studio 2010
kgayda
 
Power mock
Piyush Mittal
 
Automated Testing with CMake, CTest and CDash
Richard Thomson
 

More from Jorge Jeffrey Vargas Ipince (17)

PPTX
Introducción a Redis y Azure Redis Cache en Net Core 2.2
Jorge Jeffrey Vargas Ipince
 
PPTX
Introducing to Azure Functions
Jorge Jeffrey Vargas Ipince
 
PPTX
Ado.Net - mejores prácticas
Jorge Jeffrey Vargas Ipince
 
PPTX
Face api - Services Cognitives
Jorge Jeffrey Vargas Ipince
 
PPTX
Cloud computing
Jorge Jeffrey Vargas Ipince
 
PPTX
IQueryable VS IEnumerable - C#
Jorge Jeffrey Vargas Ipince
 
PDF
View Sql Server
Jorge Jeffrey Vargas Ipince
 
PDF
Triggers en SQL Server
Jorge Jeffrey Vargas Ipince
 
PDF
Stored Procedures - SQL
Jorge Jeffrey Vargas Ipince
 
PDF
Test Drive Development
Jorge Jeffrey Vargas Ipince
 
PDF
Backgroundworker
Jorge Jeffrey Vargas Ipince
 
PDF
Paginado Eficiente en SQL Server
Jorge Jeffrey Vargas Ipince
 
PDF
Campo identity - SQL Server
Jorge Jeffrey Vargas Ipince
 
PDF
Función replicate - SQL Server
Jorge Jeffrey Vargas Ipince
 
PDF
Truncate vs Delete
Jorge Jeffrey Vargas Ipince
 
PDF
Pivot Estatico vs Dinámico
Jorge Jeffrey Vargas Ipince
 
Introducción a Redis y Azure Redis Cache en Net Core 2.2
Jorge Jeffrey Vargas Ipince
 
Introducing to Azure Functions
Jorge Jeffrey Vargas Ipince
 
Ado.Net - mejores prácticas
Jorge Jeffrey Vargas Ipince
 
Face api - Services Cognitives
Jorge Jeffrey Vargas Ipince
 
IQueryable VS IEnumerable - C#
Jorge Jeffrey Vargas Ipince
 
Triggers en SQL Server
Jorge Jeffrey Vargas Ipince
 
Stored Procedures - SQL
Jorge Jeffrey Vargas Ipince
 
Test Drive Development
Jorge Jeffrey Vargas Ipince
 
Backgroundworker
Jorge Jeffrey Vargas Ipince
 
Paginado Eficiente en SQL Server
Jorge Jeffrey Vargas Ipince
 
Campo identity - SQL Server
Jorge Jeffrey Vargas Ipince
 
Función replicate - SQL Server
Jorge Jeffrey Vargas Ipince
 
Truncate vs Delete
Jorge Jeffrey Vargas Ipince
 
Pivot Estatico vs Dinámico
Jorge Jeffrey Vargas Ipince
 
Ad

Recently uploaded (20)

PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
DevOps & Developer Experience Summer BBQ
AUGNYC
 
PDF
This slide provides an overview Technology
mineshkharadi333
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
DOCX
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
CIFDAQ
 
PPTX
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
PDF
Google’s NotebookLM Unveils Video Overviews
SOFTTECHHUB
 
PPTX
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
 
PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
CIFDAQ
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Make GenAI investments go further with the Dell AI Factory - Infographic
Principled Technologies
 
PDF
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Captain IT
 
PDF
Chapter 2 Digital Image Fundamentals.pdf
Getnet Tigabie Askale -(GM)
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
DevOps & Developer Experience Summer BBQ
AUGNYC
 
This slide provides an overview Technology
mineshkharadi333
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
CIFDAQ
 
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
Google’s NotebookLM Unveils Video Overviews
SOFTTECHHUB
 
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
 
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
CIFDAQ
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Make GenAI investments go further with the Dell AI Factory - Infographic
Principled Technologies
 
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Captain IT
 
Chapter 2 Digital Image Fundamentals.pdf
Getnet Tigabie Askale -(GM)
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
Ad

Unit Test - Visual Studio

  • 5. Equivalencias MSTest Attribute NUnit Attribute Purpose [TestMethod] [Test] Indentifies of an individual unit test [TestClass] [TestFixture] Identifies of a group of unit tests, all Tests, and Initializations/Clean Ups must appear after this declaration [ClassInitialize] [TestFixtureSetUp] Identifies a method which should be called a single time prior to executing any test in the Test Class/Test Fixture [ClassCleanup] [TestFixtureTearDown] Identifies a method in to be called a single time following the execution of the last test in a TestClass/TestFixture [TestInitialize] [SetUp] Identifies a method to be executed each time before a TestMethod/Test is executed [TestCleanUp] [TearDown] Identifies a method to be executed each time after a TestMethod/Test has executed [AssemblyInitialize] N/A Identifies a method to be called a single time upon before running any tests in a Test Assembly [AssemblyCleanUp] N/A Identifies a method to be called a single time upon after running all tests in a Test Assembly
  • 7. * DESCARGA ESTA PRESENTACIÓN EN: WWW.KAIZEN-FORCE.COM * SÍGUENOS: WWW.FACEBOOK.COM/KAIZENFORCE MUCHAS GRACIAS….!!