private void ReadDbiStream(DbiStream dbiStream)
        {
            Assert.NotEqual(0, dbiStream.GlobalSymbolStreamIndex);
            if (dbiStream.SectionContributions != null)
            {
                Assert.Null(dbiStream.SectionContributions2);
            }
            else
            {
                Assert.NotNull(dbiStream.SectionContributions2);
            }
            Assert.NotNull(dbiStream.SectionHeaders);
            Assert.NotNull(dbiStream.SectionMap);
            if (dbiStream.FpoStream != null)
            {
                Assert.NotNull(dbiStream.FpoRecords);
            }
            Assert.NotNull(dbiStream.ECNames);
            Assert.NotNull(dbiStream.Modules);
            for (int i = 0; i < dbiStream.Modules.Count; i++)
            {
                var module = dbiStream.Modules[i];

                if (module.LocalSymbolStream != null)
                {
                    ReadSymbolStream(module.LocalSymbolStream);
                }
            }
        }
Example #2
0
 private void Test(DbiStream dbiStream)
 {
     Assert.NotEmpty(dbiStream.Modules);
     Assert.NotEmpty(dbiStream.SectionContributions);
     Assert.NotEmpty(dbiStream.SectionHeaders);
     Assert.NotEmpty(dbiStream.SectionMap);
     if (dbiStream.FpoRecords != null)
     {
         Assert.NotEmpty(dbiStream.FpoRecords);
     }
     Assert.NotNull(dbiStream.ECNames);
 }