Skip to content

This repository contains all my practices and lessons about Unit Test in .NET Core using xUnit

Notifications You must be signed in to change notification settings

lukaofirst/learning-unit-tests-dotnet-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning xUnit (Unit Testing with .NET Core)

Main Topics Learned

  • Core Principles

    • Test-Driven Development (TDD)
    • Types of Test Running
      • AAA (Arrange, Act, Assert)
      • GWT (Given, When, Then)
  • Attributes / Decorators

    • [Fact]
    • [Theory]
    • [InlineData(object data)]
    • [Trait]
  • Basic Tests

    • Asserting for true
    • Asserting for specific type
    • Asserting for exception
  • High-Level Tests

    • Using Mock to Test Service's layer
    • Using Mock to Test Controllers

About

This repository contains all my practices and lessons about Unit Test in .NET Core using xUnit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages