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

https://github.com/karenpayneoregon/learn-using-unit-test-cs

For an article on learning to code with unit test.
https://github.com/karenpayneoregon/learn-using-unit-test-cs

csharp entity-framework-core unit-testing

Last synced: over 1 year ago
JSON representation

For an article on learning to code with unit test.

Awesome Lists containing this project

README

          

# About

This Visual Studio solution discuss the following along with hands on coding.

- [x] Why developers tend to avoid testing and how to overcome
- [x] Basics of unit test
- [x] Test Explorer
- [x] Differences in static, mocked data and real data
- [x] Entity Framework Core testing
- [x] Project templating
- [x] Tips and tricks
- [x] TDD
- [ ] Live unit testing VS *Enterprise feature*
- [x] Mocking
- [x] Fakes
- [x] Testing Frameworks

# See also

- [Testing tools](https://docs.microsoft.com/en-us/visualstudio/test/?view=vs-2019) in Visual Studio
- Unit test **[basics](https://docs.microsoft.com/en-us/visualstudio/test/unit-test-basics?view=vs-2019)**
- **[Test Explorer](https://docs.microsoft.com/en-us/visualstudio/test/run-unit-tests-with-test-explorer?view=vs-2019)**
- Isolate code under test with [Microsoft Fakes](https://docs.microsoft.com/en-us/visualstudio/test/isolating-code-under-test-with-microsoft-fakes?view=vs-2019)
- Create unit test method [stubs from code](https://docs.microsoft.com/en-us/visualstudio/test/create-unit-tests-menu?view=vs-2019)
- [Frameworks](https://docs.microsoft.com/en-us/visualstudio/test/install-third-party-unit-test-frameworks?view=vs-2019)
- Visual Studio [productivity guide](https://docs.microsoft.com/en-us/visualstudio/ide/csharp-developer-productivity?view=vs-2019) for C# developers
- TechNet Wiki [C# object comparisons basics](https://social.technet.microsoft.com/wiki/contents/articles/53309.c-object-comparisons-basics.aspx)
- Custom project templates [repository](https://github.com/karenpayneoregon/vs2019-custom-project-templates)
- Storing database connections in appsettings.json [repository](https://github.com/karenpayneoregon/configuration-helpers)
- Entity Framework Core in memory testing [repository](https://github.com/karenpayneoregon/EntityFrameworkCoreInMemoryTesting)
- Microsoft docs [EF Core In-Memory Database Provider](https://docs.microsoft.com/en-us/ef/core/providers/in-memory/?tabs=dotnet-core-cli)
- TechNet Wiki [Unit testing extension methods and validation](https://social.technet.microsoft.com/wiki/contents/articles/51706.c-unit-testing-extension-methods-and-validation.aspx)
- TechNet Wiki [Different methods to display unit test](https://social.technet.microsoft.com/wiki/contents/articles/51303.visual-studio-different-methods-to-display-unit-test.aspx)

![Unit Testing](assets/unitTesting.png)![Csharp Small](assets/csharpSmall.png)![Sql Server1](assets/sql-server1.png) ![Efcore](assets/efcore.png) ![Versions](assets/Versions.png)