public void DraggedWorkspaceIsAddedToCollection() { WorkItem workItem = new TestableRootWorkItem(); CustomWorkItem wi = workItem.WorkItems.AddNew <CustomWorkItem>(); Assert.IsTrue(wi.Workspaces.Contains("window")); }
//[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")); }