Exemplo n.º 1
0
        public void RowEnumerationTest()
        {
            var rawRow = new uint[] { 0x0009, 0x0195, 0x0001 };
            var row    = new MemberReferenceRow(rawRow[0], rawRow[1], rawRow[2]);

            RowTestUtils.VerifyRowColumnEnumeration(rawRow, row);
        }
        public void RowEnumerationTest()
        {
            var rawRow = new uint[] { 0x0000, 0x001, 0x01DD };
            var row    = new ParameterDefinitionRow((ParameterAttributes)rawRow[0], (ushort)rawRow[1], rawRow[2]);

            RowTestUtils.VerifyRowColumnEnumeration(rawRow, row);
        }
Exemplo n.º 3
0
        public void RowEnumerationTest()
        {
            var rawRow = new uint[] { 0x002E, 0x000B, 0x0029 };
            var row    = new CustomAttributeRow(rawRow[0], rawRow[1], rawRow[2]);

            RowTestUtils.VerifyRowColumnEnumeration(rawRow, row);
        }
Exemplo n.º 4
0
        public void RowEnumerationTest()
        {
            var rawRow = new uint[] { 0x0006, 0x00D6, 0x01AE };
            var row    = new TypeReferenceRow(rawRow[0], rawRow[1], rawRow[2]);

            RowTestUtils.VerifyRowColumnEnumeration(rawRow, row);
        }
Exemplo n.º 5
0
        public void RowEnumerationTest()
        {
            var rawRow = new uint[] { 0, 0x0001, 0x0000, 0x0000, 0x0001, 0x0001 };
            var row    = new TypeDefinitionRow((TypeAttributes)rawRow[0], rawRow[1], rawRow[2],
                                               rawRow[3], rawRow[4], rawRow[5]);

            RowTestUtils.VerifyRowColumnEnumeration(rawRow, row);
        }
Exemplo n.º 6
0
 public void WriteRow_SmallString_SmallGuid()
 {
     RowTestUtils.AssertWriteThenReadIsSame(new ModuleDefinitionRow(
                                                0x0000,
                                                0x0146,
                                                0x0001,
                                                0x0000, 0x0000),
                                            ModuleDefinitionRow.FromReader);
 }
Exemplo n.º 7
0
 public void WriteRow_SmallHasCA_SmallCAType_SmallBlob()
 {
     RowTestUtils.AssertWriteThenReadIsSame(
         new CustomAttributeRow(
             0x002E,
             0x000B,
             0x0029),
         CustomAttributeRow.FromReader);
 }
        public void RowEnumerationTest()
        {
            var rawRow = new uint[] { 0x00008004, 0x0001, 0x0000, 0x0000, 0x0000, 0x00000000, 0x0000, 0x0013, 0x0000 };
            var row    = new AssemblyDefinitionRow((AssemblyHashAlgorithm)rawRow[0],
                                                   (ushort)rawRow[1], (ushort)rawRow[2], (ushort)rawRow[3], (ushort)rawRow[4],
                                                   (AssemblyAttributes)rawRow[5], rawRow[6], rawRow[7], rawRow[8]);

            RowTestUtils.VerifyRowColumnEnumeration(rawRow, row);
        }
Exemplo n.º 9
0
 public void WriteRow_SmallMemberRefParent_SmallString_SmallBlob()
 {
     RowTestUtils.AssertWriteThenReadIsSame(
         new MemberReferenceRow(
             0x0009,
             0x0195,
             0x0001),
         MemberReferenceRow.FromReader);
 }
Exemplo n.º 10
0
        public void RowEnumerationTest()
        {
            var rawRow = new uint[] { 0x0004, 0x0000, 0x0000, 0x0000, 0x00000000, 0x001A, 0x000A, 0x0000, 0x0000 };
            var row    = new AssemblyReferenceRow((ushort)rawRow[0],
                                                  (ushort)rawRow[1], (ushort)rawRow[2], (ushort)rawRow[3], (AssemblyAttributes)rawRow[4],
                                                  rawRow[5], rawRow[6], rawRow[7], rawRow[8]);

            RowTestUtils.VerifyRowColumnEnumeration(rawRow, row);
        }
Exemplo n.º 11
0
        public void RowEnumerationTest()
        {
            var rawRow = new uint[]
            {
                0x0000, 0x0146, 0x0001, 0x0000, 0x0000
            };
            var row = new ModuleDefinitionRow((ushort)rawRow[0], rawRow[1], rawRow[2],
                                              rawRow[3], rawRow[4]);

            RowTestUtils.VerifyRowColumnEnumeration(rawRow, row);
        }
Exemplo n.º 12
0
 public void WriteRow_SmallStrinmg_SmallBlob_SmallParam()
 {
     RowTestUtils.AssertWriteThenReadIsSame(new MethodDefinitionRow(
                                                new VirtualAddress(0x00002050),
                                                0x0000,
                                                (MethodAttributes)0x0091,
                                                0x017E,
                                                0x0023,
                                                0x0001),
                                            MethodDefinitionRow.FromReader);
 }
Exemplo n.º 13
0
        public void RowEnumerationTest()
        {
            var rawRow = new uint[] { 0x00002050, 0x0000, 0x0091, 0x017E, 0x0023, 0x0001 };
            var row    = new MethodDefinitionRow(
                new VirtualAddress(rawRow[0]),
                (MethodImplAttributes)rawRow[1],
                (MethodAttributes)rawRow[2],
                rawRow[3],
                rawRow[4],
                rawRow[5]);

            RowTestUtils.VerifyRowColumnEnumeration(rawRow, row);
        }
 public void WriteRow_SmallBlob_SmallString()
 {
     RowTestUtils.AssertWriteThenReadIsSame(
         new AssemblyDefinitionRow(
             (AssemblyHashAlgorithm)0x00008004,
             0x0001,
             0x0000,
             0x0000,
             0x0000,
             0x00000000,
             0x0000,
             0x0013,
             0x0000),
         AssemblyDefinitionRow.FromReader);
 }
Exemplo n.º 15
0
 public void WriteRow_SmallBlob_SmallString()
 {
     RowTestUtils.AssertWriteThenReadIsSame(
         new AssemblyReferenceRow(
             0x0004,
             0x0000,
             0x0000,
             0x0000,
             0x00000000,
             0x001A,
             0x000A,
             0x0000,
             0x0000),
         AssemblyReferenceRow.FromReader);
 }
 public void WriteRow_SmallString()
 {
     RowTestUtils.AssertWriteThenReadIsSame(
         new ParameterDefinitionRow(0x0000, 0x001, 0x01DD),
         ParameterDefinitionRow.FromReader);
 }
Exemplo n.º 17
0
 public void WriteRow_SmallString_Small_Extends_SmallField_SmallMethod()
 {
     RowTestUtils.AssertWriteThenReadIsSame(
         new TypeDefinitionRow(0, 0x0001, 0x0000, 0x0000, 0x0001, 0x0001),
         TypeDefinitionRow.FromReader);
 }
Exemplo n.º 18
0
 public void WriteRow_SmallResolutionScope_SmallStrings()
 {
     RowTestUtils.AssertWriteThenReadIsSame(
         new TypeReferenceRow(0x0006, 0x00D6, 0x01AE),
         TypeReferenceRow.FromReader);
 }