SlideShare une entreprise Scribd logo
1  sur  11
NUnit
UT Framework
NUnit Features
Multiple
Assemblies
Categories
Assertions
Configuration
Files
Useful
Test
Cases
Test
Environment
Theory
NUnit
Multiple Assemblies
Configuration Files
Useful Test Cases
Assertions
Categories
Test Environment
Theory
NUnit
Multiple Assemblies
Configuration Files
Useful Test Cases
Assertions
When categories are used, only the
tests in the selected categories will be
run.
■ TestFixture Syntax
[TestFixture]
[Category LongRunning“)]
public class Tests
■ Test Syntax
Test]
[Category Long“)]
public void VeryLongTest
Categories Categories
Test Environment
Theory
NUnit
Multiple Assemblies
Configuration Files
Useful Test Cases
Assertions
In addition to running tests in a single
assembly, NUnit provides support for
tests organized as multiple assemblies
and for creating and running tests as
NUnit Test Projects
Categories
Multiple Assemblies
Test Environment
Theory
NUnit
Multiple Assemblies
Configuration Files
Useful Test Cases
Assertions
If your application stores settings in
configuration files, NUnit provides
you with the ability to have settings
for your test, which are different
from those used in production.
Categories
Configuration Files
Test Environment
Theory
NUnit
Multiple Assemblies
Configuration Files
Useful Test Cases
Assertions
You can use many attributes to run
a single test with different
parameters:
■ TestCase
■ A single set of parameters per attribute.
■ Range, Random, Values
■ Multiple simple-typed parameters.
■ TestCaseSource,
ValueSource
■ Use a public property or a void Method to
transfer parameters.
Categories Useful Test
Cases
Test Environment
Theory
NUnit
Multiple Assemblies
Configuration Files
Useful Test Cases
Assertions
NUnit Provide many types of
assertions:
■ Equality
■ AreEqual, AreNotEqual
■ Identity
■ AreSame, AreNotSame, Contains
■ Condition
■ IsTure, IsFalse, IsNull, IsNaN, IsEmpty,
IsNotEmpty
■ Comparison
■ Greater, Less, IsIsnstanceOf, IsAssignableFrom
■ CustomAsserts
■ That, FluentAssertions
■ Strings, Exceptions, You name it!
Categories
Assertions
Test Environment
Theory
NUnit
Multiple Assemblies
Configuration Files
Useful Test Cases
Assertions
There are some useful attributes that
affect the test Environment:
■ Ignore & Explicit
■ Both tests will not be run, though Explicit tests
can be ran when you run them yourself
■ Platform
■ used to specify platforms for which a test or
fixture should be run.
■ RequiresThread
■ used to indicate that a test method, class or
assembly should be run on a separate thread
Categories
Test
Environment
Test Environment
Theory
NUnit
Multiple Assemblies
Configuration Files
Useful Test Cases
Assertions
A Theory is a special type of test,
used to verify a general statement
about the system under development:
■ Assume & DataPoint
■ Theories are base on assumptions and
facts(DataPoints), opposing to normal tests that
are based on examples.
■ Assertions
■ If any Assertion fails, the Theory itself fails.
■ If at least some cases pass the
stated assumptions, and there
are no assertion failures or
exceptions, then the Theory passes
Categories
Theory
Test Environment
Theory
Questions?

Contenu connexe

Tendances

An Introduction to Unit Test Using NUnit
An Introduction to Unit Test Using NUnitAn Introduction to Unit Test Using NUnit
An Introduction to Unit Test Using NUnitweili_at_slideshare
 
Hướng dẫn sử dụng Selenium ide
Hướng dẫn sử dụng Selenium ideHướng dẫn sử dụng Selenium ide
Hướng dẫn sử dụng Selenium ideThiện Dương
 
Giáo trình Tester Full
Giáo trình Tester FullGiáo trình Tester Full
Giáo trình Tester FullThanh Sơn
 
Performance testing with 100,000 concurrent users in AWS
Performance testing with 100,000 concurrent users in AWSPerformance testing with 100,000 concurrent users in AWS
Performance testing with 100,000 concurrent users in AWSMatthias Matook
 
Integration testing
Integration testingIntegration testing
Integration testingVaibhav Dash
 
Automação de Testes com Robot Framework - GUTS-SC
Automação de Testes com Robot Framework - GUTS-SCAutomação de Testes com Robot Framework - GUTS-SC
Automação de Testes com Robot Framework - GUTS-SCMayara Fernandes
 
Unit tests & TDD
Unit tests & TDDUnit tests & TDD
Unit tests & TDDDror Helper
 
Trắc Nghiệm Vi Sinh Có Đáp Án
Trắc Nghiệm Vi Sinh Có Đáp Án Trắc Nghiệm Vi Sinh Có Đáp Án
Trắc Nghiệm Vi Sinh Có Đáp Án nataliej4
 
Ứng dụng công cụ test tự động kiểm thử website
Ứng dụng công cụ test tự động kiểm thử websiteỨng dụng công cụ test tự động kiểm thử website
Ứng dụng công cụ test tự động kiểm thử websiteDotnet Open Group
 
TÌM HIỂU CÁC KỸ THUẬT KIỂM THỬ PHẦN MỀM
TÌM HIỂU CÁC KỸ THUẬT KIỂM THỬ PHẦN MỀMTÌM HIỂU CÁC KỸ THUẬT KIỂM THỬ PHẦN MỀM
TÌM HIỂU CÁC KỸ THUẬT KIỂM THỬ PHẦN MỀMNguyễn Anh
 
Chon mau va co mau hvm
Chon mau va co mau hvmChon mau va co mau hvm
Chon mau va co mau hvmNgoc Hoang
 
What is Appium? Edureka
What is Appium? EdurekaWhat is Appium? Edureka
What is Appium? EdurekaEdureka!
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeterGalih Lasahido
 
Huong dan thi nghiem wireshark
Huong dan thi nghiem wiresharkHuong dan thi nghiem wireshark
Huong dan thi nghiem wiresharkhien tran
 
Robot Framework - principais características
Robot Framework - principais característicasRobot Framework - principais características
Robot Framework - principais característicasalinebiath
 

Tendances (20)

An Introduction to Unit Test Using NUnit
An Introduction to Unit Test Using NUnitAn Introduction to Unit Test Using NUnit
An Introduction to Unit Test Using NUnit
 
Hướng dẫn sử dụng Selenium ide
Hướng dẫn sử dụng Selenium ideHướng dẫn sử dụng Selenium ide
Hướng dẫn sử dụng Selenium ide
 
Giáo trình Tester Full
Giáo trình Tester FullGiáo trình Tester Full
Giáo trình Tester Full
 
Performance testing with 100,000 concurrent users in AWS
Performance testing with 100,000 concurrent users in AWSPerformance testing with 100,000 concurrent users in AWS
Performance testing with 100,000 concurrent users in AWS
 
Integration testing
Integration testingIntegration testing
Integration testing
 
Automação de Testes com Robot Framework - GUTS-SC
Automação de Testes com Robot Framework - GUTS-SCAutomação de Testes com Robot Framework - GUTS-SC
Automação de Testes com Robot Framework - GUTS-SC
 
Unit tests & TDD
Unit tests & TDDUnit tests & TDD
Unit tests & TDD
 
Trắc Nghiệm Vi Sinh Có Đáp Án
Trắc Nghiệm Vi Sinh Có Đáp Án Trắc Nghiệm Vi Sinh Có Đáp Án
Trắc Nghiệm Vi Sinh Có Đáp Án
 
Ứng dụng công cụ test tự động kiểm thử website
Ứng dụng công cụ test tự động kiểm thử websiteỨng dụng công cụ test tự động kiểm thử website
Ứng dụng công cụ test tự động kiểm thử website
 
TÌM HIỂU CÁC KỸ THUẬT KIỂM THỬ PHẦN MỀM
TÌM HIỂU CÁC KỸ THUẬT KIỂM THỬ PHẦN MỀMTÌM HIỂU CÁC KỸ THUẬT KIỂM THỬ PHẦN MỀM
TÌM HIỂU CÁC KỸ THUẬT KIỂM THỬ PHẦN MỀM
 
01 tester training - overview
01  tester training - overview01  tester training - overview
01 tester training - overview
 
Chon mau va co mau hvm
Chon mau va co mau hvmChon mau va co mau hvm
Chon mau va co mau hvm
 
What is Appium? Edureka
What is Appium? EdurekaWhat is Appium? Edureka
What is Appium? Edureka
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
Huong dan thi nghiem wireshark
Huong dan thi nghiem wiresharkHuong dan thi nghiem wireshark
Huong dan thi nghiem wireshark
 
Robot Framework - principais características
Robot Framework - principais característicasRobot Framework - principais características
Robot Framework - principais características
 
Virus
VirusVirus
Virus
 
E2 e test with testcafe
E2 e test with testcafeE2 e test with testcafe
E2 e test with testcafe
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 
Bai giảng Nguồn gốc tiến hóa
Bai giảng Nguồn gốc tiến hóaBai giảng Nguồn gốc tiến hóa
Bai giảng Nguồn gốc tiến hóa
 

En vedette

Introduction to nsubstitute
Introduction to nsubstituteIntroduction to nsubstitute
Introduction to nsubstituteSuresh Loganatha
 
How and what to unit test
How and what to unit testHow and what to unit test
How and what to unit testEugenio Lentini
 
What is exactly anti fragile in dev ops - v3
What is exactly anti fragile in dev ops - v3What is exactly anti fragile in dev ops - v3
What is exactly anti fragile in dev ops - v3Asher Sterkin
 
Nuget is easier than you think and you should be using it as both a consumer ...
Nuget is easier than you think and you should be using it as both a consumer ...Nuget is easier than you think and you should be using it as both a consumer ...
Nuget is easier than you think and you should be using it as both a consumer ...Justin James
 
Using nu get the way you should svcc
Using nu get the way you should   svccUsing nu get the way you should   svcc
Using nu get the way you should svccMaarten Balliauw
 
Using NuGet the way you should - TechDays NL 2014
Using NuGet the way you should - TechDays NL 2014Using NuGet the way you should - TechDays NL 2014
Using NuGet the way you should - TechDays NL 2014Maarten Balliauw
 
טלפונים חכמים ואתם
טלפונים חכמים ואתםטלפונים חכמים ואתם
טלפונים חכמים ואתםIdan ofek
 
Code quality as a built-in process
Code quality as a built-in processCode quality as a built-in process
Code quality as a built-in processElad Maimon
 
Guice - dependency injection framework
Guice - dependency injection frameworkGuice - dependency injection framework
Guice - dependency injection frameworkEvgeny Barabanov
 
1953 and all that. A tale of two sciences (Kitcher, 1984)
1953 and all that. A tale of two sciences (Kitcher, 1984)1953 and all that. A tale of two sciences (Kitcher, 1984)
1953 and all that. A tale of two sciences (Kitcher, 1984)Yoav Francis
 
xUnit Test Patterns Chapter 20
xUnit Test Patterns Chapter 20xUnit Test Patterns Chapter 20
xUnit Test Patterns Chapter 20Hiroyuki Ohnaka
 
Automated Testing and Continuous Integration for Mobile Apps: Jenkins & Cloud...
Automated Testing and Continuous Integration for Mobile Apps: Jenkins & Cloud...Automated Testing and Continuous Integration for Mobile Apps: Jenkins & Cloud...
Automated Testing and Continuous Integration for Mobile Apps: Jenkins & Cloud...SOASTA
 
Garbage collected teardown
Garbage collected teardownGarbage collected teardown
Garbage collected teardownHiroyuki Ohnaka
 
Little productivity tools every developer should use
Little productivity tools every developer should useLittle productivity tools every developer should use
Little productivity tools every developer should useDennis Doomen
 
מכתב המלצה - לירן פרידמן
מכתב המלצה - לירן פרידמןמכתב המלצה - לירן פרידמן
מכתב המלצה - לירן פרידמןLiran Fridman
 
Roy Osherove TDD From Scratch
Roy Osherove TDD From ScratchRoy Osherove TDD From Scratch
Roy Osherove TDD From ScratchRoy Osherove
 

En vedette (20)

Nunit
NunitNunit
Nunit
 
Introduction to nsubstitute
Introduction to nsubstituteIntroduction to nsubstitute
Introduction to nsubstitute
 
How and what to unit test
How and what to unit testHow and what to unit test
How and what to unit test
 
What is exactly anti fragile in dev ops - v3
What is exactly anti fragile in dev ops - v3What is exactly anti fragile in dev ops - v3
What is exactly anti fragile in dev ops - v3
 
Nuget is easier than you think and you should be using it as both a consumer ...
Nuget is easier than you think and you should be using it as both a consumer ...Nuget is easier than you think and you should be using it as both a consumer ...
Nuget is easier than you think and you should be using it as both a consumer ...
 
Using nu get the way you should svcc
Using nu get the way you should   svccUsing nu get the way you should   svcc
Using nu get the way you should svcc
 
Using NuGet the way you should - TechDays NL 2014
Using NuGet the way you should - TechDays NL 2014Using NuGet the way you should - TechDays NL 2014
Using NuGet the way you should - TechDays NL 2014
 
טלפונים חכמים ואתם
טלפונים חכמים ואתםטלפונים חכמים ואתם
טלפונים חכמים ואתם
 
Code quality as a built-in process
Code quality as a built-in processCode quality as a built-in process
Code quality as a built-in process
 
Developing NuGet
Developing NuGetDeveloping NuGet
Developing NuGet
 
Guice - dependency injection framework
Guice - dependency injection frameworkGuice - dependency injection framework
Guice - dependency injection framework
 
1953 and all that. A tale of two sciences (Kitcher, 1984)
1953 and all that. A tale of two sciences (Kitcher, 1984)1953 and all that. A tale of two sciences (Kitcher, 1984)
1953 and all that. A tale of two sciences (Kitcher, 1984)
 
xUnit Test Patterns Chapter 20
xUnit Test Patterns Chapter 20xUnit Test Patterns Chapter 20
xUnit Test Patterns Chapter 20
 
Automated Testing and Continuous Integration for Mobile Apps: Jenkins & Cloud...
Automated Testing and Continuous Integration for Mobile Apps: Jenkins & Cloud...Automated Testing and Continuous Integration for Mobile Apps: Jenkins & Cloud...
Automated Testing and Continuous Integration for Mobile Apps: Jenkins & Cloud...
 
Garbage collected teardown
Garbage collected teardownGarbage collected teardown
Garbage collected teardown
 
Little productivity tools every developer should use
Little productivity tools every developer should useLittle productivity tools every developer should use
Little productivity tools every developer should use
 
מכתב המלצה - לירן פרידמן
מכתב המלצה - לירן פרידמןמכתב המלצה - לירן פרידמן
מכתב המלצה - לירן פרידמן
 
Negative Testing
Negative TestingNegative Testing
Negative Testing
 
Roy Osherove TDD From Scratch
Roy Osherove TDD From ScratchRoy Osherove TDD From Scratch
Roy Osherove TDD From Scratch
 
Unit Testing (C#)
Unit Testing (C#)Unit Testing (C#)
Unit Testing (C#)
 

Similaire à NUnit Features Presentation

TestNG introduction
TestNG introductionTestNG introduction
TestNG introductionDenis Bazhin
 
Test Driven Development with Sql Server
Test Driven Development with Sql ServerTest Driven Development with Sql Server
Test Driven Development with Sql ServerDavid P. Moore
 
Unit testing basics with NUnit and Visual Studio
Unit testing basics with NUnit and Visual StudioUnit testing basics with NUnit and Visual Studio
Unit testing basics with NUnit and Visual StudioAmit Choudhary
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsSteven Li
 
Unit Testing in .NET Core 7.0 with XUnit.pptx
Unit Testing in .NET Core 7.0 with XUnit.pptxUnit Testing in .NET Core 7.0 with XUnit.pptx
Unit Testing in .NET Core 7.0 with XUnit.pptxKnoldus Inc.
 
Test case management with MTM 2013
Test case management with MTM 2013Test case management with MTM 2013
Test case management with MTM 2013Raluca Suditu
 
.Net Unit Testing with Visual Studio 2010
.Net Unit Testing with Visual Studio 2010.Net Unit Testing with Visual Studio 2010
.Net Unit Testing with Visual Studio 2010kgayda
 
Test Case Management with MTM 2013
Test Case Management with MTM 2013Test Case Management with MTM 2013
Test Case Management with MTM 2013Raluca Suditu
 
TestNG - The Next Generation of Unit Testing
TestNG - The Next Generation of Unit TestingTestNG - The Next Generation of Unit Testing
TestNG - The Next Generation of Unit TestingBethmi Gunasekara
 
Unit testing php-unit - phing - selenium_v2
Unit testing   php-unit - phing - selenium_v2Unit testing   php-unit - phing - selenium_v2
Unit testing php-unit - phing - selenium_v2Tricode (part of Dept)
 
Principles and patterns for test driven development
Principles and patterns for test driven developmentPrinciples and patterns for test driven development
Principles and patterns for test driven developmentStephen Fuqua
 
JUnit5 Custom TestEngines intro - version 2020-06
JUnit5 Custom TestEngines intro - version 2020-06JUnit5 Custom TestEngines intro - version 2020-06
JUnit5 Custom TestEngines intro - version 2020-06Sven Ruppert
 
TestNG Session presented in PB
TestNG Session presented in PBTestNG Session presented in PB
TestNG Session presented in PBAbhishek Yadav
 

Similaire à NUnit Features Presentation (20)

TestNG introduction
TestNG introductionTestNG introduction
TestNG introduction
 
testng
testngtestng
testng
 
Testing with Junit4
Testing with Junit4Testing with Junit4
Testing with Junit4
 
Test Driven Development with Sql Server
Test Driven Development with Sql ServerTest Driven Development with Sql Server
Test Driven Development with Sql Server
 
Unit testing basics with NUnit and Visual Studio
Unit testing basics with NUnit and Visual StudioUnit testing basics with NUnit and Visual Studio
Unit testing basics with NUnit and Visual Studio
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementations
 
Unit Testing in .NET Core 7.0 with XUnit.pptx
Unit Testing in .NET Core 7.0 with XUnit.pptxUnit Testing in .NET Core 7.0 with XUnit.pptx
Unit Testing in .NET Core 7.0 with XUnit.pptx
 
Test case management with MTM 2013
Test case management with MTM 2013Test case management with MTM 2013
Test case management with MTM 2013
 
Junit
JunitJunit
Junit
 
.Net Unit Testing with Visual Studio 2010
.Net Unit Testing with Visual Studio 2010.Net Unit Testing with Visual Studio 2010
.Net Unit Testing with Visual Studio 2010
 
Test Case Management with MTM 2013
Test Case Management with MTM 2013Test Case Management with MTM 2013
Test Case Management with MTM 2013
 
TestNG - The Next Generation of Unit Testing
TestNG - The Next Generation of Unit TestingTestNG - The Next Generation of Unit Testing
TestNG - The Next Generation of Unit Testing
 
Skillwise Unit Testing
Skillwise Unit TestingSkillwise Unit Testing
Skillwise Unit Testing
 
Test ng
Test ngTest ng
Test ng
 
Cpp unit
Cpp unit Cpp unit
Cpp unit
 
Unit testing php-unit - phing - selenium_v2
Unit testing   php-unit - phing - selenium_v2Unit testing   php-unit - phing - selenium_v2
Unit testing php-unit - phing - selenium_v2
 
Testing 101
Testing 101Testing 101
Testing 101
 
Principles and patterns for test driven development
Principles and patterns for test driven developmentPrinciples and patterns for test driven development
Principles and patterns for test driven development
 
JUnit5 Custom TestEngines intro - version 2020-06
JUnit5 Custom TestEngines intro - version 2020-06JUnit5 Custom TestEngines intro - version 2020-06
JUnit5 Custom TestEngines intro - version 2020-06
 
TestNG Session presented in PB
TestNG Session presented in PBTestNG Session presented in PB
TestNG Session presented in PB
 

Dernier

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 

Dernier (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 

NUnit Features Presentation

  • 3. NUnit Multiple Assemblies Configuration Files Useful Test Cases Assertions Categories Test Environment Theory
  • 4. NUnit Multiple Assemblies Configuration Files Useful Test Cases Assertions When categories are used, only the tests in the selected categories will be run. ■ TestFixture Syntax [TestFixture] [Category LongRunning“)] public class Tests ■ Test Syntax Test] [Category Long“)] public void VeryLongTest Categories Categories Test Environment Theory
  • 5. NUnit Multiple Assemblies Configuration Files Useful Test Cases Assertions In addition to running tests in a single assembly, NUnit provides support for tests organized as multiple assemblies and for creating and running tests as NUnit Test Projects Categories Multiple Assemblies Test Environment Theory
  • 6. NUnit Multiple Assemblies Configuration Files Useful Test Cases Assertions If your application stores settings in configuration files, NUnit provides you with the ability to have settings for your test, which are different from those used in production. Categories Configuration Files Test Environment Theory
  • 7. NUnit Multiple Assemblies Configuration Files Useful Test Cases Assertions You can use many attributes to run a single test with different parameters: ■ TestCase ■ A single set of parameters per attribute. ■ Range, Random, Values ■ Multiple simple-typed parameters. ■ TestCaseSource, ValueSource ■ Use a public property or a void Method to transfer parameters. Categories Useful Test Cases Test Environment Theory
  • 8. NUnit Multiple Assemblies Configuration Files Useful Test Cases Assertions NUnit Provide many types of assertions: ■ Equality ■ AreEqual, AreNotEqual ■ Identity ■ AreSame, AreNotSame, Contains ■ Condition ■ IsTure, IsFalse, IsNull, IsNaN, IsEmpty, IsNotEmpty ■ Comparison ■ Greater, Less, IsIsnstanceOf, IsAssignableFrom ■ CustomAsserts ■ That, FluentAssertions ■ Strings, Exceptions, You name it! Categories Assertions Test Environment Theory
  • 9. NUnit Multiple Assemblies Configuration Files Useful Test Cases Assertions There are some useful attributes that affect the test Environment: ■ Ignore & Explicit ■ Both tests will not be run, though Explicit tests can be ran when you run them yourself ■ Platform ■ used to specify platforms for which a test or fixture should be run. ■ RequiresThread ■ used to indicate that a test method, class or assembly should be run on a separate thread Categories Test Environment Test Environment Theory
  • 10. NUnit Multiple Assemblies Configuration Files Useful Test Cases Assertions A Theory is a special type of test, used to verify a general statement about the system under development: ■ Assume & DataPoint ■ Theories are base on assumptions and facts(DataPoints), opposing to normal tests that are based on examples. ■ Assertions ■ If any Assertion fails, the Theory itself fails. ■ If at least some cases pass the stated assumptions, and there are no assertion failures or exceptions, then the Theory passes Categories Theory Test Environment Theory

Notes de l'éditeur

  1. Today We will talk about the features and unique aspects of the NUnit Framework.*To those of you who are totally new to NUnit*NUnit is an open source unit testing framework for Microsoft .NET.It serves the same purpose as JUnit does in the Java world, and is one of many programs in the xUnit family.
  2. So, except for the basic functionality of the framework (for an example running a test, having a test class/ fixture , etc…) it has some really powerful features.Some of the features are unique to NUnit.Some are also implemented in other frameworks but not as fluent and easy to use as they are in NUnit.In this presentation, I will talk about the most powerful features of the framework.
  3. Transition
  4. NUnit allows tests to be categorized by topic.Instead of running a test session based on a test fixture, why not run tests by categories?For an example:If I want to run only the tests that test “Edge Case” Issues, and I have categorized the tests as such, I don’t need to add ignore attributes on tests.I will simply need to specify the “Edge Case” Category to be ran and all the other tests will be excluded from the session.It can be either applied on a single test case or a whole test fixture!Plus, it makes the test class more readable if you can nest it under a certain topic.
  5. A Brilliant feature is the ability to run tests from multiple assemblies at once.Most of you will not find it that interesting.But! Think of it. You want to check the integration of few components and need to test it.It allows you to run the tests of each component and the integrative test between them all at a single session!
  6. This is a feature that also exists in MSTest but the big difference is that NUnit does it better.Faster Reading of Configuration, Better presentation of parameterized tests, and many more advantages.
  7. NUnit provides many neat test case sources- whether it’s a single test case, a range of values or simply cases read from an external source.You can read more about it at Luke Wickstead – How To NUnit: Features @ http://lukewickstead.wordpress.com/2013/02/09/howto-nunit-features/
  8. One of the more fluent and readable advantages of NUnit is the assertions.NUnit has many types of assertions that allow easy and very easy to understand assertions.There are also some add-ins that allow truly fluent assertionFind out more on Luke Wickstead – How To NUnit: Assertions @ http://lukewickstead.wordpress.com/2013/02/09/howto-nunit-assertions/
  9. NUnit also allows you to control the test environment without any need to change the test itself.You may either ignore or decide whether the test should be ran (Ignore and Explicit).You may also choose the platform that the test will be ran at (for list of supported platforms, go to http://www.nunit.org/index.php?p=platform&r=2.2.10)And even require a test to be ran on a different thread so the tests will work in parallel. (default, the tests run on a single thread.)
  10. Theories is a very complex issue.Apparently, it seems as the theory is a normal test. But it is a very special test.The theory is based on assumptions and data points that allow you to test a theoretical matter, rather then an actual fact that has examples.NUnit have a really good example for it on their website @ http://nunit.org/index.php?p=theory&r=2.5
  11. That’s it for today people!If you want to ask me questions, simply mail me to Shirbr510@gmail.com and write in the subject “NUnit Presentation Questions”Till Next Time, Shir.