C# 클래스 Jwc.Experiment.Idioms.ObjectDisposalAssertion

Encapsulates a unit test that verifies that members throw ObjectDisposedException after its owner(object) is disposed.
상속: IdiomaticAssertion
파일 보기 프로젝트 열기: jwChung/Experimentalism 1 사용 예제들

공개 메소드들

메소드 설명
ObjectDisposalAssertion ( ISpecimenBuilder builder ) : System

Initializes a new instance of the ObjectDisposalAssertion class.

Verify ( MethodInfo method ) : void

Verifies that a method throws ObjectDisposedException after its owner(object) is disposed.

Verify ( PropertyInfo property ) : void

Verifies that a property throws ObjectDisposedException after its owner(object) is disposed.

비공개 메소드들

메소드 설명
GetArguments ( IEnumerable parameters ) : object[]
GetOwner ( MethodInfo method ) : IDisposable
ThrowDoesNotImplementIDisposable ( MethodInfo method ) : void
ThrowDoesNotThrowObjectDisposedException ( MethodInfo method ) : void
VerifyThrowsObjectDisposedException ( IDisposable owner, MethodInfo method ) : void

메소드 상세

ObjectDisposalAssertion() 공개 메소드

Initializes a new instance of the ObjectDisposalAssertion class.
public ObjectDisposalAssertion ( ISpecimenBuilder builder ) : System
builder ISpecimenBuilder /// The builder to create an owner object. ///
리턴 System

Verify() 공개 메소드

Verifies that a method throws ObjectDisposedException after its owner(object) is disposed.
public Verify ( MethodInfo method ) : void
method System.Reflection.MethodInfo /// The method. ///
리턴 void

Verify() 공개 메소드

Verifies that a property throws ObjectDisposedException after its owner(object) is disposed.
public Verify ( PropertyInfo property ) : void
property System.Reflection.PropertyInfo /// The property. ///
리턴 void