Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lukaofirst/learning-unit-tests-dotnet-core

This repository contains all my practices and lessons about Unit Test in .NET Core using xUnit
https://github.com/lukaofirst/learning-unit-tests-dotnet-core

dotnet-core unit-testing unittest xunit

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

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