Hi all!
I was playing with unit tests in a real C# project, it’s very interesting, just creating a new project with the purpose to test your main project. But be careful with all actions you want to test, they must be decoupled and available to be executed outside its class.
So I want to share with you a simple solution made with C# and Visual Studio 2017. On it you could find two projects: one with the main code which controlls the weight of people who enter inside an elevator and the other project is in charge to execute the unit tests automatically:
Check it out on my GitHub account, and feel free to download and play with it.