Author | International Speaker | Microsoft MVP | I publish content about #csharp, #dotnet, and #softwareArchitecture. π¨βπ» Author of https://t.co/gYcixImyb6 π§
Jan 11, 2022 β’ 9 tweets β’ 4 min read
As a #dotnet dev, when you need to run some throwaway code, you don't need to open an IDE, create a new console app, and discard the changes.
There are lots of tools you can use to run C# code in the bat of an eye.
Let's list some of them π§΅
1οΈβ£ LinqPad
It's a playground for running C#, F#, and VB code offline.
π run/debug code
π run XUnit tests
π save your snippets locally
π Well-printed object
π NuGet packages
π only local development
π free version does not tidy up your code
An introduction to Unit Tests (UT), Mocks, Integration Tests (IT), End-to-end Tests (E2E).
Say that you want to learn how to drive. π
[1/9]
At home, you have a car simulator.
Your Unit Tests will be:
πΈhow to turn on the car
πΈhow to speed up
πΈhow to slow down
πΈwhat to do with a red light
You are not using a real car, but a simulator. This is your *mock*.