Davide πŸ””1️⃣ Profile picture
I create content about #dotNET, Software Architecture, and more 🐧 Let's grow together!πŸ’ͺ
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

πŸ”— @linqpad Image
May 31, 2021 β€’ 9 tweets β€’ 2 min read
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*.

[2/9]