There are a lot of question on how to add Fakes Assembly but no one on what they are and what they are used for.
Fakes are used to mock or stub code for testing purposes. E.g., instead of connecting directly to a database in a unit test you create a fake of the class that accesses the database that "fakes" just enough behavior to be used instead of the real database. This isolates the unit test from the remaining system.
You can read more about fakes in Isolating Code Under Test with Microsoft Fakes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With