Mono.Cecil.Tests.ImageReadTests.MetadataHeaps C# (CSharp) Method

MetadataHeaps() private method

private MetadataHeaps ( ) : void
return void
        public void MetadataHeaps()
        {
            using (var image = GetResourceImage ("hello.exe")) {
                Assert.IsNotNull (image.TableHeap);

                Assert.IsNotNull (image.StringHeap);
                Assert.AreEqual (string.Empty, image.StringHeap.Read (0));
                Assert.AreEqual ("<Module>", image.StringHeap.Read (1));

                Assert.IsNotNull (image.UserStringHeap);
                Assert.AreEqual (string.Empty, image.UserStringHeap.Read (0));
                Assert.AreEqual ("Hello Cecil World !", image.UserStringHeap.Read (1));

                Assert.IsNotNull (image.GuidHeap);
                Assert.AreEqual (new Guid (), image.GuidHeap.Read (0));
                Assert.AreEqual (new Guid ("C3BC2BD3-2576-4D00-A80E-465B5632415F"), image.GuidHeap.Read (1));

                Assert.IsNotNull (image.BlobHeap);
                Assert.AreEqual (new byte [0], image.BlobHeap.Read (0));
            }
        }