-
[C#] NUnit TestC#/기초 2025. 3. 27. 17:12
https://dlsenfl.tistory.com/entry/C-UnitTest
[C#] UnitTest
NUnit vs. XUnit vs. MSTestWe now compare the C# unit testing frameworks from an attribute usage point of view along with a simple example, which demonstrates the code flow.Attributes in test frameworksIrrespective of the C# unit testing framework, attribut
dlsenfl.tistory.com
# 생성자
: 테스트 클래스에서
생성자는 전체 테스트 통틀어 한번 실행.
# [Setup]
: [Test] 마다 실행.
#[Test]
: 테스트 메소드 (Public 으로 선언)
보통 테스트 하고자 하는 클래스의 Public 메소드를 테스트 함.
728x90'C# > 기초' 카테고리의 다른 글
[C#] LINQ All<>() (0) 2025.04.03 [C#] // 주석 (0) 2025.03.28 [C#] CLR (Common Language Runtime) (0) 2025.03.18 [C#] ASP.NET Core (0) 2025.02.26 [C#] 정규식, Regex (0) 2025.02.18