Available on GitHub, run your code on a REPL terminal.
π Cool
π works with C# and F#
π free
π you can add NuGet packages
π on console, harder to write
π cannot save snippets
4οΈβ£ Sharplab
Available at Sharplab[.]io, run code to see the compiled result, IL, syntax tree
π good for advanced devs
π works with C#, F#, VB, IL
π can share code as GIST
π no code tidy up
π no NuGet packages
5οΈβ£ .NET Fiddle
Online editor, available at dotnetfiddle[.]net
π share and collaborate on code
π tidy up code
π NuGet packages
π choose compiler, language, project type
π converts your code to IL and VB
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]
UTs: test the behaviors in a controlled environment with mocks.
They are fast: you can stay at home with your simulator. In a minute you'll be able to redo your tests and add more (eg: turn on the lights)