public void LoadTest() { NetWorkType nettype =NetWorkType.GSM; // TODO: 初始化为适当的值 StudyEditorFactory target = new StudyEditorFactory(nettype); // TODO: 初始化为适当的值 string xmlFile = MainFormSingleton.AppBaseDirectory + "\\XmlPredictionTest.xml"; target.Load(xmlFile); List<IStudyEditor> expected = new List<IStudyEditor>(); expected.Add(new MockEditor0()); expected.Add(new MockEditor1()); expected.Add(new MockEditor2()); List<IStudy> studyList = CreateStudyByName(); int i = 0; foreach (IStudy study in studyList) { IStudyEditor actual = target.GetStudyEditor(study.Name); Assert.AreEqual(actual, expected[i++]); } }
public void MyTestInitialize() { NetWorkType netWorkType = NetWorkType.GSM; target = new StudyEditorFactory(netWorkType); // TODO: 初始化为适当的值 }