public void test() { MDependency14.AllInstances.generateClass14 = (Dependency14 dependency, Class14 clazz) => { clazz.callback(123); }; Class14 clazz2 = new Class14(); Assert.AreEqual(2 * 123, clazz2.generate()); }
public void generate(Class14 clazz) { clazz.callback(999); }