public void Test_BoxingRefValueResults() { var struct1 = Class21.Method21(); Assert.AreEqual(123, struct1.value); var harmony = new Harmony("test"); var processor = new PatchClassProcessor(harmony, typeof(Class21Patch)); var patches = processor.Patch(); Assert.NotNull(patches, "patches"); Assert.AreEqual(1, patches.Count); var result = Class21.Method21(); Assert.AreEqual(456, result.value); }