예제 #1
0
        public void Test_Class23()
        {
            var instance = new Harmony("test");

            Assert.NotNull(instance, "instance");

            var processor = new PatchClassProcessor(instance, typeof(Class23));

            Assert.NotNull(processor, "processor");
            _ = processor.Patch();

            Class23.bool1 = null;
            Class23.Method23();

            Assert.NotNull(Class23.bool1, "bool1");
            Assert.IsTrue(Class23.bool1.Value, "bool1.Value");
        }