public void btnSkipSave_ClickTest() { DlgQuerySaveCheckedInFile target = new DlgQuerySaveCheckedInFile("Dummy.txt"); MethodInfo method = typeof(DlgQuerySaveCheckedInFile).GetMethod("btnSkipSave_Click", BindingFlags.NonPublic | BindingFlags.Instance); method.Invoke(target, new object[] { null, null }); Assert.AreEqual(target.Answer, DlgQuerySaveCheckedInFile.qscifSkipSave); }
public void ConstructorTest() { DlgQuerySaveCheckedInFile target = new DlgQuerySaveCheckedInFile("Dummy.txt"); Assert.IsNotNull(target, "DlgQuerySaveCheckedInFile cannot be created"); }