re: How YOU can Learn Mock testing in .NET Core and C# with Moq VIEW POST


Magic string are no go imo for tests. Replacing expected value for a variable increase readability as well.


yea.. It wasn't meant to look like a clean code, perfect looking test but rather show the usage of moq.. Agree with you though.. no magic strings

Code of Conduct Report abuse