Войти
  • 8799Просмотров
  • 1 год назадОпубликованоRound The Code

xUnit tutorial: How to run unit testing in C#

Learn how to run unit testing in C# with this xUnit tutorial. Testing is important in a .NET project to capture any bugs, and we'll run through some of the attributes used in writing unit tests such as Fact and Theory. In-order to perform a test, you need to use Assert. We'll run through some the Assert functions such as True, False, Equal and NotEqual. What if a test isn't working? In Visual Studio, you can debug a test and we'll show you how to place a breakpoint and run a test in debug mode. 💻 Download the code example💻 ► Read the tutorial: 🎓 .NET tutorials, code examples and coding challenges 🎓 ► Chapters 0:00 Coming up... 0:16 Create projects and methods 2:46 Write unit tests 6:51 Other Assert functions 9:33 How to debug 10:18 Learn more about xUnit