Esempio n. 1
0
        public void DraggedWorkspaceIsAddedToCollection()
        {
            WorkItem       workItem = new TestableRootWorkItem();
            CustomWorkItem wi       = workItem.WorkItems.AddNew <CustomWorkItem>();

            Assert.IsTrue(wi.Workspaces.Contains("window"));
        }
Esempio n. 2
0
        //[Test]
        //[Ignore("Design time code generation needs to change... See CustomWorkItem.cs!!!")]
        public void DraggedComponentsAreSitedWithNameWhenWorkItemSited()
        {
            WorkItem       workItem = new TestableRootWorkItem();
            CustomWorkItem wi       = workItem.WorkItems.AddNew <CustomWorkItem>();

            Assert.IsTrue(wi.Items.ContainsObject(wi.customerInformation));
            Assert.IsTrue(wi.Items.ContainsObject(wi.anyComponent));
            Assert.IsTrue(wi.Items.ContainsObject("customerInformation"));
            Assert.IsTrue(wi.Items.ContainsObject("anyComponent"));
        }