Ejemplo n.º 1
0
 public void OkButtonEnabledIfSomethingSelected()
 {
     using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new IScrBook[] { m_genesis }))
     {
         dialog.DontShow();
         Assert.IsTrue(dialog.OKButton.Enabled);
     }
 }
Ejemplo n.º 2
0
 public void OkButtonDisabledIfNothingSelected()
 {
     using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new IScrBook[] { }))
     {
         dialog.DontShow();
         Assert.IsFalse(dialog.OKButton.Enabled);
     }
 }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        public void OkButtonEnabledIfSomethingSelected()
        {
            CheckDisposed();

            using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new int[] { m_genesis.Hvo }))
            {
                dialog.DontShow();
                Assert.IsTrue(dialog.OKButton.Enabled);
            }
        }
Ejemplo n.º 5
0
        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);
            }
        }
Ejemplo n.º 6
0
		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);
			}
		}
Ejemplo n.º 7
0
		public void OkButtonEnabledIfSomethingSelected()
		{
			CheckDisposed();

			using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new int[] { m_genesis.Hvo }))
			{
				dialog.DontShow();
				Assert.IsTrue(dialog.OKButton.Enabled);
			}
		}
Ejemplo n.º 8
0
		public void OkButtonDisabledIfNothingSelected()
		{
			CheckDisposed();

			using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new int[] { }))
			{
				dialog.DontShow();
				Assert.IsFalse(dialog.OKButton.Enabled);
			}
		}
Ejemplo n.º 9
0
		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);
			}
		}
Ejemplo n.º 10
0
		public void OkButtonEnabledIfSomethingSelected()
		{
			using (DummyFilterBookDialog dialog = new DummyFilterBookDialog(Cache, new IScrBook[] { m_genesis }))
			{
				dialog.DontShow();
				Assert.IsTrue(dialog.OKButton.Enabled);
			}
		}