Mastering Unit Testing in C#: A Beginner's Guide

所在平台: Udemy

课程主页: https://www.udemy.com/course/mastering-unit-testing-in-c-a-beginners-guide/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** C#单元测试精通:入门指南 **课程概述:** 本课程旨在教授C#单元测试的基础知识,帮助开发者确保代码的可靠性。课程指出,许多问题并非源于开发者失误,而是由于用户输入错误或逻辑漏洞。单元测试专注于验证代码的核心逻辑,而非整个应用程序。 课程内容涵盖: * 单元测试的基本理论。 * C# and .NET 中两种主流测试框架 NUnit 和 XUnit 的区别。 * Assertion(断言)、Exception Testing(异常测试)和 Mocking(模拟)等关键概念的讲解及实际应用。 **先修要求:** 具备C#和.NET的基础知识,无需单元测试经验。

课程评论(0条)

课程详情

While coding is fun and all, you need to make sure your code is always working. When something goes wrong customers usually blame the developers, but 7 out of 10 times it's a wrong input but the customer. 2 out of 10 times it's a logic problem ("well, didn't see that one coming"), and 1 out 10 times its a developers error.We, developers, cannot think for a customer or all the things a user can do. But we can make sure our code works as it should. Therefore, we should test our code. Not the application, but the logic that makes the application work. This is what we call ‘unit testing'.In this course, I will explain and show you the basics of C# unit testing. I will start with the basic theory of unit testing and the difference between NUnit and XUnit, the two most test frameworks for C# and.NET. Other subjects are assertions, exception testing, and mocking are really important to know and explained. With some practical examples, I will show you how to use and implement them.For this course, it is convenient if you have some experience with C# and.NET. You don't need any knowledge of unit testing, because that's what this course is all about.

课程标签

0人关注该课程

主题相关的课程