|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/mstest-unit-testing-tutorial-for-beginners/
课程评论:没有评论
Coursera 推出了一门面向初学者的 MSTest 单元测试教程 C# 单元测试课程。 **课程内容概述:** 本课程将教授如何使用 C# 编程语言和 MSTest 框架编写有效的单元测试。您将学习单元测试相关的概念,并很快掌握编写单元测试的技巧。目前,许多组织都期望员工具备单元测试技能,因为单元测试对于软件应用程序的质量日益重要。 如果您对以下术语感兴趣,本课程将是您的理想选择,并能在短短 4 小时内成为单元测试专家: * Visual Studio 单元测试教程 * MSTest 单元测试教程 * Dot Net 测试框架 * C# 单元测试框架 * Visual Studio 单元测试框架教程 * C# 单元测试教程 **课程时长:** 课程总时长约为 4 小时,全部为视频讲座。您还可以下载课程中使用的所有幻灯片和代码示例。 **课程重点内容:** 课程将从讲解什么是单元测试开始,并动手编写您的第一个单元测试,随后介绍单元测试的好处和命名约定。 此外,还将涵盖以下内容: * 在 Visual Studio 中运行、调试、自动生成单元测试 * 对单元测试进行分组 * 单元测试特性 (Traits) 和筛选 * 播放列表 (Playlists) * Visual Studio 中的代码覆盖率 (Code Coverage) * 单元测试异常处理 * 单元测试私有方法 * Visual Studio 顺序测试 (Ordered Test) * Visual Studio 泛型测试 (Generic Test) * 单元测试断言 (Assertions) * 从命令行运行单元测试 **重点讲解的 Visual Studio 单元测试属性(附带示例):** * `[TestClass]` * `[TestMethod]` * `[TestInitialize]` * `[TestCleanup]` * `[ClassInitialize]` * `[ClassCleanup]` * `[AssemblyInitialize]` * `[AssemblyCleanup]` * `[TimeOut]` * `[Ignore]` **高级单元测试概念(附带示例):** * `TestContext` 是什么 * Visual Studio 数据驱动单元测试 (Data Driven Unit Tests) * 测试驱动开发 (TDD) 是什么 * TDD 的优势
What is the course about: This course is all about writing effective unit tests using C# programming language and MSTest framework. Along the way we will learn the concepts related to unit testing. Most organisations these days expect it's employees to have unit testing skills, as unit testing is becoming more and more important for the quality of the software applications.If you have reached this course by using any of the following terminology, you are at the right place, and you will become an expert in writing unit tests in just 4 hours.Visual Studio unit testing tutorialMSTest unit testing tutorialDot Net testing frameworkC# unit test frameworkVisual Studio unit testing framework tutorialcsharp unit testing tutorialHow long is the course: The course is around 4 hours. All are video lectures. You will be able to download all the slides and code samples used in the course.What will we be covering: We will start with, what is a unit test and we will write our first unit test, followed by benefits of unit tests. and unit test naming conventions.We will also cover running, debugging, auto generating unit tests, grouping unit tests in visual studio, unit test traits, filtering, playlists, code coverage in visual studio, unit testing exceptions, unit testing private methods, visual studio ordered test, visual studio generic test, unit testing assertions and running unit tests from command lineThe following visual studio unit testing attributes are discussed with examplesTestClass attributeTestMethod attributeTestInitialize attributeTestCleanup attributeClassInitialize attributeClassCleanup attributeAssemblyInitialize attributeAssemblyCleanup attributeTimeOut attributeIgnore attributeWe also discuss the following concepts related to advanced unit testing with examplesWhat is TestContextVisual Studio data driven unit testsWhat is test driven development TDDBenefits of TDD