Ejemplo n.º 1
0
		public void SelectTilesInDiffferentImageBoxes()
		{
			TestTree testTree = new TestTree();

			testTree.Tile1.Select();
			Assert.AreEqual(testTree.Tile1, testTree.ImageBox1.SelectedTile);
			Assert.AreEqual(testTree.ImageBox1, testTree.Viewer.PhysicalWorkspace.SelectedImageBox);
			Assert.IsTrue(testTree.Image1.Selected);
			Assert.IsTrue(testTree.Tile1.Selected);
			Assert.IsTrue(testTree.DisplaySet1.Selected);
			Assert.IsTrue(testTree.ImageBox1.Selected);

			Assert.IsFalse(testTree.Image2.Selected);
			Assert.IsFalse(testTree.Image3.Selected);
			Assert.IsFalse(testTree.Image4.Selected);
			Assert.IsFalse(testTree.Tile2.Selected);
			Assert.IsFalse(testTree.Tile3.Selected);
			Assert.IsFalse(testTree.Tile4.Selected);

			Assert.IsFalse(testTree.DisplaySet2.Selected);
			Assert.IsFalse(testTree.ImageBox2.Selected);

			testTree.Tile3.Select();

			Assert.AreEqual(testTree.Tile3, testTree.ImageBox2.SelectedTile);
			Assert.AreEqual(testTree.ImageBox2, testTree.Viewer.PhysicalWorkspace.SelectedImageBox);
			Assert.IsTrue(testTree.Image3.Selected);
			Assert.IsTrue(testTree.Tile3.Selected);
			Assert.IsTrue(testTree.DisplaySet2.Selected);
			Assert.IsTrue(testTree.ImageBox2.Selected);

			Assert.IsFalse(testTree.Image1.Selected);
			Assert.IsFalse(testTree.Image2.Selected);
			Assert.IsFalse(testTree.Image4.Selected);
			Assert.IsFalse(testTree.Tile1.Selected);
			Assert.IsFalse(testTree.Tile2.Selected);
			Assert.IsFalse(testTree.Tile4.Selected);

			Assert.IsFalse(testTree.DisplaySet1.Selected);
			Assert.IsFalse(testTree.ImageBox1.Selected);
		}
Ejemplo n.º 2
0
        public void SelectTilesInDiffferentImageBoxes()
        {
            TestTree testTree = new TestTree();

            testTree.Tile1.Select();
            Assert.AreEqual(testTree.Tile1, testTree.ImageBox1.SelectedTile);
            Assert.AreEqual(testTree.ImageBox1, testTree.Viewer.PhysicalWorkspace.SelectedImageBox);
            Assert.IsTrue(testTree.Image1.Selected);
            Assert.IsTrue(testTree.Tile1.Selected);
            Assert.IsTrue(testTree.DisplaySet1.Selected);
            Assert.IsTrue(testTree.ImageBox1.Selected);

            Assert.IsFalse(testTree.Image2.Selected);
            Assert.IsFalse(testTree.Image3.Selected);
            Assert.IsFalse(testTree.Image4.Selected);
            Assert.IsFalse(testTree.Tile2.Selected);
            Assert.IsFalse(testTree.Tile3.Selected);
            Assert.IsFalse(testTree.Tile4.Selected);

            Assert.IsFalse(testTree.DisplaySet2.Selected);
            Assert.IsFalse(testTree.ImageBox2.Selected);

            testTree.Tile3.Select();

            Assert.AreEqual(testTree.Tile3, testTree.ImageBox2.SelectedTile);
            Assert.AreEqual(testTree.ImageBox2, testTree.Viewer.PhysicalWorkspace.SelectedImageBox);
            Assert.IsTrue(testTree.Image3.Selected);
            Assert.IsTrue(testTree.Tile3.Selected);
            Assert.IsTrue(testTree.DisplaySet2.Selected);
            Assert.IsTrue(testTree.ImageBox2.Selected);

            Assert.IsFalse(testTree.Image1.Selected);
            Assert.IsFalse(testTree.Image2.Selected);
            Assert.IsFalse(testTree.Image4.Selected);
            Assert.IsFalse(testTree.Tile1.Selected);
            Assert.IsFalse(testTree.Tile2.Selected);
            Assert.IsFalse(testTree.Tile4.Selected);

            Assert.IsFalse(testTree.DisplaySet1.Selected);
            Assert.IsFalse(testTree.ImageBox1.Selected);
        }