public void test1() { MFile.OpenTextString = _ => new MStreamReader(); MStreamReader.AllInstances.ReadLine = _ => "123"; Class13 clazz = new Class13(); Assert.AreEqual(2 * 123, clazz.generate1()); }
public void test1() { MFile.OpenTextString = _ => new MStreamReader(); MStreamReader.AllInstances.ReadLine = _ => "123"; Class13 clazz = new Class13(); Assert.AreEqual(2 * 123, clazz.generate1()); }