public void ConstructorTest() { Dictionary <int, string> changeLists = new Dictionary <int, string>(); DlgQueryEditCheckedInFile target = new DlgQueryEditCheckedInFile("Dummy.txt", changeLists); Assert.IsNotNull(target, "DlgQueryEditCheckedInFile cannot be created"); }
public void btnEdit_ClickTest() { DlgQueryEditCheckedInFile target = new DlgQueryEditCheckedInFile("Dummy.txt"); MethodInfo method = typeof(DlgQueryEditCheckedInFile).GetMethod("btnEdit_Click", BindingFlags.NonPublic | BindingFlags.Instance); method.Invoke(target, new object[] { null, null }); Assert.AreEqual(target.Answer, DlgQueryEditCheckedInFile.qecifEditInMemory); }
public void btnCheckout_ClickTest() { Dictionary <int, string> changeLists = new Dictionary <int, string>(); DlgQueryEditCheckedInFile target = new DlgQueryEditCheckedInFile("Dummy.txt", changeLists); MethodInfo method = typeof(DlgQueryEditCheckedInFile).GetMethod("btnCheckout_Click", BindingFlags.NonPublic | BindingFlags.Instance); method.Invoke(target, new object[] { null, null }); Assert.AreEqual(target.Answer, DlgQueryEditCheckedInFile.qecifCheckout); }
public void ConstructorTest() { DlgQueryEditCheckedInFile target = new DlgQueryEditCheckedInFile("Dummy.txt"); Assert.IsNotNull(target, "DlgQueryEditCheckedInFile cannot be created"); }