Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lukaofirst/learning-unit-tests-dotnet-core
- Owner: lukaofirst
- Created: 2023-01-17T23:54:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-10T04:31:49.000Z (12 months ago)
- Last Synced: 2024-03-10T05:31:08.047Z (12 months ago)
- Topics: dotnet-core, unit-testing, unittest, xunit
- Language: C#
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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