C# Class System.Reflection.Emit.Tests.TypeBuilderDefineFieldTests

Mostra file Open project: dotnet/corefx

Public Methods

Method Description
TestData ( ) : IEnumerable

Private Methods

Method Description
DefineField ( string name, Type fieldType, FieldAttributes attributes, FieldAttributes expectedAttributes ) : void
DefineField_ByRefFieldType_ThrowsCOMExceptionOnCreation ( ) : void
DefineField_CalledTwice_Works ( ) : void
DefineField_DynamicFieldTypeNotCreated_ThrowsTypeLoadException ( ) : void
DefineField_InvalidFieldAttributes_ThrowsTypeLoadExceptionOnCreation ( FieldAttributes attributes, FieldAttributes expected ) : void
DefineField_InvalidFieldName_ThrowsArgumentException ( string fieldName ) : void
DefineField_NullFieldName_ThrowsArgumentNullException ( ) : void
DefineField_NullFieldType_ThrowsArgumentNullException ( ) : void
DefineField_TypeAlreadyCreated_ThrowsInvalidOperationException ( ) : void
DefineField_VoidFieldType_ThrowsArgumentException ( ) : void
GetField_TypeNotCreated_ThrowsNotSupportedException ( ) : void
GetFields_TypeNotCreated_ThrowsNotSupportedException ( ) : void

Method Details

TestData() public static method

public static TestData ( ) : IEnumerable
return IEnumerable