Course Code: unittest
Duration: 21 hours
Prerequisites:
  • 瞭解 Dot Net 基礎知識

觀眾

  • 軟體測試人員
Overview:

MSTest、xUnit 和 nUnit 是單元測試框架。MSTest 以其集成測試而聞名,它是 Microsoft 創建的官方單元測試框架。n單位歸因於點網單元測試。xUnit 是專門處理 32 位和 64 位處理,是歸因於 Dot Net 的另一個框架。

此講師指導的現場培訓(現場或遠端)面向希望使用 MSTest、xUnit 和 nUnit 單元單元測試代碼功能的軟體測試人員。

培訓結束時,學員將能夠:

  • 使用 MSTest 創建單元測試以測試軟體應用程式。
  • 使用 CodeLens 顯示測試結果。
  • 瞭解測試驅動開發的不同測試控管。

課程格式

  • 互動講座和討論。
  • 大量的練習和練習。
  • 在即時實驗室環境中實際實現。

課程自訂選項

  • 如需申請本課程的定制培訓,請聯繫我們安排。
Course Outline:

介紹

Unit Testing 框架

  • 什麼是單元測試?
  • 單元測試框架的基礎知識

測試驅動開發

  • 重構概述
  • 不同的測試方法

準備開發環境

  • 安裝和設定 Visual Studio Code
  • 安裝和配置 .Net
  • 安裝和配置 nUnit

編寫 Unit Testing 框架

  • 創建測試
  • 應用更多測試
  • 重構測試運行程式
  • 使用 assert 類
  • 反映調用方法
  • 使用命名約定

Visual Studio Code 集成

  • 使用範本創建專案
  • 使用單元測試框架創建專案
  • 運行測試
  • 優化代碼
  • 測試參數

n單位

  • 編寫和運行測試單元
  • 使用約束
  • 測試參數

x單位

  • 編寫和運行單元測試
  • 使用 InLine 測試參數
  • 測試多個參數
  • 使用自定義類成員

高級優化

  • 對測試進行分組
  • 使用測試屬性
  • 使用播放清單進行自定義
  • 調試測試
  • 使用測試功能表
  • 使用 CodeLens 查看結果
  • 使用代碼覆蓋率
  • 使用 MSTest 執行測試

總結和結論

Sites Published:

United Arab Emirates - Unit Testing: MSTest, xUnit, and nUnit

Qatar - Unit Testing: MSTest, xUnit, and nUnit

Egypt - Unit Testing: MSTest, xUnit, and nUnit

Saudi Arabia - Unit Testing: MSTest, xUnit, and nUnit

South Africa - Unit Testing: MSTest, xUnit, and nUnit

Brasil - Unit Testing: MSTest, xUnit, and nUnit

Canada - Unit Testing: MSTest, xUnit, and nUnit

中国 - Unit Testing: MSTest, xUnit, and nUnit

香港 - Unit Testing: MSTest, xUnit, and nUnit

澳門 - Unit Testing: MSTest, xUnit, and nUnit

台灣 - Unit Testing: MSTest, xUnit, and nUnit

USA - Unit Testing: MSTest, xUnit, and nUnit

Österreich - Unit Testing: MSTest, xUnit, and nUnit

Schweiz - Unit Testing: MSTest, xUnit, and nUnit

Deutschland - Unit Testing: MSTest, xUnit, and nUnit

Czech Republic - Unit Testing: MSTest, xUnit, and nUnit

Denmark - Unit Testing: MSTest, xUnit, and nUnit

Estonia - Unit Testing: MSTest, xUnit, and nUnit

Finland - Unit Testing: MSTest, xUnit, and nUnit

Greece - Unit Testing: MSTest, xUnit, and nUnit

Magyarország - Unit Testing: MSTest, xUnit, and nUnit

Ireland - Unit Testing: MSTest, xUnit, and nUnit

Luxembourg - Unit Testing: MSTest, xUnit, and nUnit

Latvia - Unit Testing: MSTest, xUnit, and nUnit

España - Unit Testing: MSTest, xUnit, and nUnit

Italia - Unit Testing: MSTest, xUnit, and nUnit

Lithuania - Unit Testing: MSTest, xUnit, and nUnit

Nederland - Unit Testing: MSTest, xUnit, and nUnit

Norway - Unit Testing: MSTest, xUnit, and nUnit

Portugal - Unit Testing: MSTest, xUnit, and nUnit

România - Unit Testing: MSTest, xUnit, and nUnit

Sverige - Unit Testing: MSTest, xUnit, and nUnit

Türkiye - Unit Testing: MSTest, xUnit, and nUnit

Malta - Unit Testing: MSTest, xUnit, and nUnit

Belgique - Unit Testing: MSTest, xUnit, and nUnit

France - Unit Testing: MSTest, xUnit, and nUnit

日本 - Unit Testing: MSTest, xUnit, and nUnit

Australia - Unit Testing: MSTest, xUnit, and nUnit

Malaysia - Unit Testing: MSTest, xUnit, and nUnit

New Zealand - Unit Testing: MSTest, xUnit, and nUnit

Philippines - Unit Testing: MSTest, xUnit, and nUnit

Singapore - Unit Testing: MSTest, xUnit, and nUnit

Thailand - Unit Testing: MSTest, xUnit, and nUnit

Vietnam - Unit Testing: MSTest, xUnit, and nUnit

India - Unit Testing: MSTest, xUnit, and nUnit

Argentina - Unit Testing: MSTest, xUnit, and nUnit

Chile - Unit Testing: MSTest, xUnit, and nUnit

Costa Rica - Unit Testing: MSTest, xUnit, and nUnit

Ecuador - Unit Testing: MSTest, xUnit, and nUnit

Guatemala - Unit Testing: MSTest, xUnit, and nUnit

Colombia - Unit Testing: MSTest, xUnit, and nUnit

México - Unit Testing: MSTest, xUnit, and nUnit

Panama - Unit Testing: MSTest, xUnit, and nUnit

Peru - Unit Testing: MSTest, xUnit, and nUnit

Uruguay - Unit Testing: MSTest, xUnit, and nUnit

Venezuela - Unit Testing: MSTest, xUnit, and nUnit

Polska - Unit Testing: MSTest, xUnit, and nUnit

United Kingdom - Unit Testing: MSTest, xUnit, and nUnit

South Korea - Unit Testing: MSTest, xUnit, and nUnit

Pakistan - Unit Testing: MSTest, xUnit, and nUnit

Sri Lanka - Unit Testing: MSTest, xUnit, and nUnit

Bulgaria - Unit Testing: MSTest, xUnit, and nUnit

Bolivia - Unit Testing: MSTest, xUnit, and nUnit

Indonesia - Unit Testing: MSTest, xUnit, and nUnit

Kazakhstan - Unit Testing: MSTest, xUnit, and nUnit

Moldova - Unit Testing: MSTest, xUnit, and nUnit

Morocco - Unit Testing: MSTest, xUnit, and nUnit

Tunisia - Unit Testing: MSTest, xUnit, and nUnit

Kuwait - Unit Testing: MSTest, xUnit, and nUnit

Oman - Unit Testing: MSTest, xUnit, and nUnit

Slovakia - Unit Testing: MSTest, xUnit, and nUnit

Kenya - Unit Testing: MSTest, xUnit, and nUnit

Nigeria - Unit Testing: MSTest, xUnit, and nUnit

Botswana - Unit Testing: MSTest, xUnit, and nUnit

Slovenia - Unit Testing: MSTest, xUnit, and nUnit

Croatia - Unit Testing: MSTest, xUnit, and nUnit

Serbia - Unit Testing: MSTest, xUnit, and nUnit

Bhutan - Unit Testing: MSTest, xUnit, and nUnit

Nepal - Unit Testing: MSTest, xUnit, and nUnit

Uzbekistan - Unit Testing: MSTest, xUnit, and nUnit