👏 new video in the docusaurus doc
continuous-integration/drone/push Build is passing Details

pull/2/head
Marc CHEVALDONNE 3 years ago
parent 8777b4ea1f
commit b48024dd08

10
.gitignore vendored

@ -339,3 +339,13 @@ ASALocalRun/
# Mac stuff # Mac stuff
.DS_Store .DS_Store
Documentation/docusaurus/.docusaurus/docusaurus-plugin-content-blog/default/documentation-mch-samples-net-docusaurus-mchsamples-net-core-fr-blog-archive-b17.json
Documentation/docusaurus/.docusaurus/docusaurus-plugin-content-blog/default/documentation-mch-samples-net-docusaurus-mchsamples-net-core-fr-blog-f72.json
Documentation/docusaurus/.docusaurus/docusaurus-plugin-content-blog/default/documentation-mch-samples-net-docusaurus-mchsamples-net-core-fr-blog-tags-docusaurus-cea-list.json
Documentation/docusaurus/.docusaurus/docusaurus-plugin-content-blog/default/documentation-mch-samples-net-docusaurus-mchsamples-net-core-fr-blog-tags-docusaurus-cea.json
Documentation/docusaurus/.docusaurus/docusaurus-plugin-content-blog/default/documentation-mch-samples-net-docusaurus-mchsamples-net-core-fr-blog-tags-tags-bf9.json
Documentation/docusaurus/.docusaurus/docusaurus-plugin-content-blog/default/documentation-mch-samples-net-docusaurus-mchsamples-net-core-fr-blog-tags-welcome-3e7-list.json
Documentation/docusaurus/.docusaurus/docusaurus-plugin-content-blog/default/documentation-mch-samples-net-docusaurus-mchsamples-net-core-fr-blog-tags-welcome-3e7.json
Documentation/docusaurus/.docusaurus/docusaurus-plugin-content-docs/default/category-documentationmchsamples-netdocusaurusmchsamples-net-corefrdocs-tutorialsidebar-category-1-fundamentals-21f.json
Documentation/docusaurus/.docusaurus/docusaurus-plugin-content-docs/default/category-documentationmchsamples-netdocusaurusmchsamples-net-corefrdocs-tutorialsidebar-category-2-model-c16.json
Documentation/docusaurus/.docusaurus/docusaurus-plugin-content-docs/default/category-documentationmchsamples-netdocusaurusmchsamples-net-corefrdocs-tutorialsidebar-category-entity-framework-core-cc9.json

@ -1,6 +1,6 @@
{ {
"label": "Entity Framework Core", "label": "Entity Framework Core",
"position": 2, "position": 3,
"link": { "link": {
"type": "generated-index", "type": "generated-index",
"description": "5 minutes to learn the most important Docusaurus concepts." "description": "5 minutes to learn the most important Docusaurus concepts."

@ -0,0 +1,15 @@
---
sidebar_position: 2
title: Unit Tests avec xUnit
---
# Unit Tests avec xUnit
Vous trouverez ici une vidéo de présentation des tests unitaires avec xUnit. Je ne montre pas tout, mais ça vous permettra de débuter avec :
- [Fact] : des tests simples,
- [Theory] + [InlineData] : des tests avec jeu de données (mais uniquement des constantes)
- [Theory] + [MemberData] : des tests avec des jeux de données pouvant posséder des paramètres construits à la volée, dans la classe de tests ou dans une classe extérieure.
N'oubliez pas que vous pouvez trouver les exemples de cours ici sur les tests unitaires : ![Unit Tests sample](https://codefirst.iut.uca.fr/git/mchSamples_.NET/mchsamples-.net-core/src/branch/master/p05_More_dotNet/ex_026_001_xUnit_Fact)
<iframe allowfullscreen src='https://opencast.dsi.uca.fr/paella/ui/embed.html?id=4563de39-f30d-4080-ab8b-96e29a4e9ca7' width='640' height='480' frameborder='0' scrolling='no' marginwidth='0' marginheight='0' allowfullscreen='true' webkitallowfullscreen='true' mozallowfullscreen='true' ></iframe>

@ -8,14 +8,14 @@ sidebar_position: 1
### Integrated Development Environment ### Integrated Development Environment
These samples have been updated to .NET 5.0. You only need Visual Studio 2022 or Visual Studio 2019 tu run these samples. These samples have been updated to .NET 6.0. You only need Visual Studio 2022 or Visual Studio 2019 tu run these samples.
Visual Studio 2022 can be found here : <https://visualstudio.microsoft.com/fr/vs/> Visual Studio 2022 can be found here : <https://visualstudio.microsoft.com/fr/vs/>
Visual Studio 2019 can be found here : <https://visualstudio.microsoft.com/fr/vs/older-downloads/> Visual Studio 2019 can be found here : <https://visualstudio.microsoft.com/fr/vs/older-downloads/>
### Docker image ### Docker image
If you need a docker image of .NET 5.0, you can use this one : mcr.microsoft.com/dotnet/sdk:5.0 If you need a docker image of .NET 6.0, you can use this one : mcr.microsoft.com/dotnet/sdk:6.0
### .NET 5.0 SDK and runtime ### .NET 6.0 SDK and runtime
If you want to use the SDK and runtime of .NET 5.0 without using Visual Studio, you can find them here : <https://dotnet.microsoft.com/en-us/download/dotnet/5.0> If you want to use the SDK and runtime of .NET 5.0 without using Visual Studio, you can find them here : <https://dotnet.microsoft.com/en-us/download/dotnet/6.0>

Loading…
Cancel
Save