C# Class Cilador.Fody.Tests.Common.CommonExtensions

Mostrar archivo Open project: rileywhite/Cilador

Public Methods

Method Description
GetShortAssemblyQualifiedName ( this type ) : string
ToXElement ( this @object ) : System.Xml.Linq.XElement
ValidateConstructorCountIs ( this type, int expectedCount ) : void
ValidateEventCountIs ( this type, int expectedCount ) : void
ValidateFieldCountIs ( this type, int expectedCount ) : void
ValidateMemberCountsAre ( this type, int expectedConstructorCount, int expectedMethodCount, int expectedFieldCount, int expectedPropertyCount, int expectedEventCount, int expectedNestedTypeCount ) : void
ValidateMemberSources ( this targetType, Type sourceType ) : void
ValidateMethodCountIs ( this type, int expectedCount ) : void
ValidateNestedTypeCountIs ( this type, int expectedCount ) : void
ValidatePropertyCountIs ( this type, int expectedCount ) : void

Private Methods

Method Description
IsSourceNameEqual ( this target, MethodInfo source, string>.Tuple rootTargetAndSourceFullNames ) : bool
IsSourceNameEqual ( this target, Type source, string>.Tuple rootTargetAndSourceFullNames ) : bool
ValidateSourceEqual ( this targetAttributes, Attribute sourceAttributes, string>.Tuple rootTargetAndSourceFullNames ) : void
ValidateSourceEqual ( this targetEvent, EventInfo sourceEvent, string>.Tuple rootTargetAndSourceFullNames ) : void
ValidateSourceEqual ( this targetField, FieldInfo sourceField, string>.Tuple rootTargetAndSourceFullNames ) : void
ValidateSourceEqual ( this targetMethod, MethodInfo sourceMethod, string>.Tuple rootTargetAndSourceFullNames ) : void
ValidateSourceEqual ( this targetParameters, ParameterInfo sourceParameters, string>.Tuple rootTargetAndSourceFullNames ) : void
ValidateSourceEqual ( this targetProperty, PropertyInfo sourceProperty, string>.Tuple rootTargetAndSourceFullNames ) : void
ValidateSourceEqual ( this targetType, Type sourceType, string>.Tuple rootTargetAndSourceFullNames ) : void
ValidateSourceNameEqual ( this target, MethodInfo source, string>.Tuple rootTargetAndSourceFullNames ) : void
ValidateSourceNameEqual ( this target, Type source, string>.Tuple rootTargetAndSourceFullNames ) : void

Method Details

GetShortAssemblyQualifiedName() public static method

public static GetShortAssemblyQualifiedName ( this type ) : string
type this
return string

ToXElement() public static method

public static ToXElement ( this @object ) : System.Xml.Linq.XElement
@object this
return System.Xml.Linq.XElement

ValidateConstructorCountIs() public static method

public static ValidateConstructorCountIs ( this type, int expectedCount ) : void
type this
expectedCount int
return void

ValidateEventCountIs() public static method

public static ValidateEventCountIs ( this type, int expectedCount ) : void
type this
expectedCount int
return void

ValidateFieldCountIs() public static method

public static ValidateFieldCountIs ( this type, int expectedCount ) : void
type this
expectedCount int
return void

ValidateMemberCountsAre() public static method

public static ValidateMemberCountsAre ( this type, int expectedConstructorCount, int expectedMethodCount, int expectedFieldCount, int expectedPropertyCount, int expectedEventCount, int expectedNestedTypeCount ) : void
type this
expectedConstructorCount int
expectedMethodCount int
expectedFieldCount int
expectedPropertyCount int
expectedEventCount int
expectedNestedTypeCount int
return void

ValidateMemberSources() public static method

public static ValidateMemberSources ( this targetType, Type sourceType ) : void
targetType this
sourceType System.Type
return void

ValidateMethodCountIs() public static method

public static ValidateMethodCountIs ( this type, int expectedCount ) : void
type this
expectedCount int
return void

ValidateNestedTypeCountIs() public static method

public static ValidateNestedTypeCountIs ( this type, int expectedCount ) : void
type this
expectedCount int
return void

ValidatePropertyCountIs() public static method

public static ValidatePropertyCountIs ( this type, int expectedCount ) : void
type this
expectedCount int
return void