Exemple #1
0
        public void TestDependencyMissingNestedType()
        {
            PatchInstaller   installer = new PatchInstaller(new MockModuleSource(module));
            StandardPatch    patch     = new StandardPatch("TestPatch");
            TypeModification type      = patch.Module(module.Name, ModificationKind.FailIfMissing, true).Type(ReadOnlyNamespace, NormalClass, ModificationKind.FailIfMissing);

            type.Attributes = TypeAttributes.BeforeFieldInit;
            type.NestedType(MissingMember, ModificationKind.FailIfMissing);
            installer.Add(patch);
            installer.Install();
        }