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

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

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

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