Esempio n. 1
0
 public void ResolveCOMImageFlagsSingleFlags_Test()
 {
     Assert.Equal("COMIMAGE_FLAGS_ILONLY", FlagResolver.ResolveCOMImageFlags(0x00000001).First());
     Assert.Equal("COMIMAGE_FLAGS_32BITREQUIRED", FlagResolver.ResolveCOMImageFlags(0x00000002).First());
     Assert.Equal("COMIMAGE_FLAGS_IL_LIBRARY", FlagResolver.ResolveCOMImageFlags(0x000000004).First());
     Assert.Equal("COMIMAGE_FLAGS_STRONGNAMESIGNED", FlagResolver.ResolveCOMImageFlags(0x00000008).First());
     Assert.Equal("COMIMAGE_FLAGS_NATIVE_ENTRYPOINT", FlagResolver.ResolveCOMImageFlags(0x00000010).First());
     Assert.Equal("COMIMAGE_FLAGS_TRACKDEBUGDATA", FlagResolver.ResolveCOMImageFlags(0x00010000).First());
 }
Esempio n. 2
0
        public void ResolveCOMIMagesFlagsMultipleFlags_Test()
        {
            uint flags    = 0x00010005;
            var  resolved = FlagResolver.ResolveCOMImageFlags(flags);

            Assert.Equal(3, resolved.Count);
            Assert.Equal("COMIMAGE_FLAGS_ILONLY", resolved[0]);
            Assert.Equal("COMIMAGE_FLAGS_IL_LIBRARY", resolved[1]);
            Assert.Equal("COMIMAGE_FLAGS_TRACKDEBUGDATA", resolved[2]);
        }