Пример #1
0
        public void SetUp()
        {
            _TaskTreeView    = new NuGenTaskTreeView();
            _InitialCount    = _TaskTreeView.Nodes.Count;
            _EventSink       = new TaskTreeViewEventSink(_TaskTreeView);
            _ServiceProvider = new NuGenTaskServiceProvider();
            _XmlDoc          = new XmlDocument();

            _TaskItemDescription = "Description";
            _TaskItemMock        = new DynamicMock(typeof(TaskItem));
            _TaskItemMock.SetValue("Description", _TaskItemDescription);
            _TaskItem = (TaskItem)_TaskItemMock.Object;

            Assert.IsFalse(_TaskTreeView.LabelEdit);
        }
		public void SetUp()
		{
			_TaskTreeView = new NuGenTaskTreeView();
			_InitialCount = _TaskTreeView.Nodes.Count;
			_EventSink = new TaskTreeViewEventSink(_TaskTreeView);
			_ServiceProvider = new NuGenTaskServiceProvider();
			_XmlDoc = new XmlDocument();

			_TaskItemDescription = "Description";
			_TaskItemMock = new DynamicMock(typeof(TaskItem));
			_TaskItemMock.SetValue("Description", _TaskItemDescription);
			_TaskItem = (TaskItem)_TaskItemMock.Object;

			Assert.IsFalse(_TaskTreeView.LabelEdit);
		}