다음을 통해 공유


TearDownAttribute 클래스

정의

각 테스트를 실행한 직후 호출되는 메서드를 식별하는 데 사용되는 특성입니다. 예외가 throw되더라도 메서드가 호출되도록 보장됩니다.

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class TearDownAttribute : NUnit.Framework.NUnitAttribute
type TearDownAttribute = class
    inherit NUnitAttribute
상속
TearDownAttribute
특성

생성자

TearDownAttribute()

각 테스트를 실행한 직후 호출되는 메서드를 식별하는 데 사용되는 특성입니다. 예외가 throw되더라도 메서드가 호출되도록 보장됩니다.

적용 대상