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

Encapsulates a unit test that verifies that certain assemblies are not exposed through public API.
상속: IdiomaticAssertion
파일 보기 프로젝트 열기: jwChung/Experimentalism 1 사용 예제들

공개 메소드들

메소드 설명
NotExposedReferenceAssertion ( ) : System

Initializes a new instance of the NotExposedReferenceAssertion class.

Verify ( Assembly assembly ) : void

Verifies that an assembly does not expose the indirect references through public APIs.

Verify ( ConstructorInfo constructor ) : void

Verifies that a constructor does not expose the indirect references through public APIs.

Verify ( EventInfo @event ) : void

Verifies that an event does not expose the indirect references through public APIs.

Verify ( FieldInfo field ) : void

Verifies that a field does not expose the indirect references through public APIs.

Verify ( MethodInfo method ) : void

Verifies that a method does not expose the indirect references through public APIs.

Verify ( PropertyInfo property ) : void

Verifies that a property does not expose the indirect references through public APIs.

Verify ( Type type ) : void

Verifies that a type does not expose the indirect references through public APIs.

비공개 메소드들

메소드 설명
EnsureDostNotExposeIndirectReferences ( IReflectionElement reflectionElement ) : void
GetAccessibilities ( MemberInfo member ) : Accessibilities
GetReferences ( IReflectionElement reflectionElement ) : IEnumerable
IsExposed ( MemberInfo member ) : bool

메소드 상세

NotExposedReferenceAssertion() 공개 메소드

Initializes a new instance of the NotExposedReferenceAssertion class.
public NotExposedReferenceAssertion ( ) : System
리턴 System

Verify() 공개 메소드

Verifies that an assembly does not expose the indirect references through public APIs.
public Verify ( Assembly assembly ) : void
assembly System.Reflection.Assembly /// The assembly. ///
리턴 void

Verify() 공개 메소드

Verifies that a constructor does not expose the indirect references through public APIs.
public Verify ( ConstructorInfo constructor ) : void
constructor System.Reflection.ConstructorInfo /// The constructor. ///
리턴 void

Verify() 공개 메소드

Verifies that an event does not expose the indirect references through public APIs.
public Verify ( EventInfo @event ) : void
@event System.Reflection.EventInfo
리턴 void

Verify() 공개 메소드

Verifies that a field does not expose the indirect references through public APIs.
public Verify ( FieldInfo field ) : void
field System.Reflection.FieldInfo /// The field. ///
리턴 void

Verify() 공개 메소드

Verifies that a method does not expose the indirect references through public APIs.
public Verify ( MethodInfo method ) : void
method System.Reflection.MethodInfo /// The method. ///
리턴 void

Verify() 공개 메소드

Verifies that a property does not expose the indirect references through public APIs.
public Verify ( PropertyInfo property ) : void
property System.Reflection.PropertyInfo /// The field. ///
리턴 void

Verify() 공개 메소드

Verifies that a type does not expose the indirect references through public APIs.
public Verify ( Type type ) : void
type System.Type /// A type to be verified. ///
리턴 void