public void OkButtonEnabledIfSomethingSelected() { using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new IScrBook[] { m_genesis })) { dialog.DontShow(); Assert.IsTrue(dialog.OKButton.Enabled); } }
public void OkButtonDisabledIfNothingSelected() { using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new IScrBook[] { })) { dialog.DontShow(); Assert.IsFalse(dialog.OKButton.Enabled); } }
public void OkButtonGetsDisabledIfNothingSelected() { using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new IScrBook[] { m_genesis })) { dialog.DontShow(); dialog.SelectBook(m_genesis, TriStateTreeView.CheckState.Unchecked); Assert.IsFalse(dialog.OKButton.Enabled); } }
public void OkButtonEnabledIfSomethingSelected() { CheckDisposed(); using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new int[] { m_genesis.Hvo })) { dialog.DontShow(); Assert.IsTrue(dialog.OKButton.Enabled); } }
public void OkButtonGetsEnabledIfSelected() { CheckDisposed(); using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new int[] { })) { dialog.DontShow(); dialog.SelectBook(m_genesis.Hvo, TriStateTreeView.CheckState.Checked); Assert.IsTrue(dialog.OKButton.Enabled); } }
public void OkButtonGetsDisabledIfNothingSelected() { CheckDisposed(); using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new int[] { m_genesis.Hvo })) { dialog.DontShow(); dialog.SelectBook(m_genesis.Hvo, TriStateTreeView.CheckState.Unchecked); Assert.IsFalse(dialog.OKButton.Enabled); } }
public void OkButtonDisabledIfNothingSelected() { CheckDisposed(); using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new int[] { })) { dialog.DontShow(); Assert.IsFalse(dialog.OKButton.Enabled); } }
public void OkButtonGetsEnabledIfSelected() { using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new IScrBook[] { })) { dialog.DontShow(); dialog.SelectBook(m_genesis, TriStateTreeView.CheckState.Checked); Assert.IsTrue(dialog.OKButton.Enabled); } }