Unit testing C# with MSTest and .NET Core Part 4 – Update the method

Currently the method only throws an exception. So let’s create the implementation. Update the code accordingly. Time to rerun the test! Since the paramater sent is 1 and the Assert checks if the bool IsFalse the test passes. There you go! Now go and write some tests!

1 min read