Пример #1
0
        /// <summary>
        /// Test running the node, then clearing the
        /// selection and running again.
        /// </summary>
        /// <typeparam name="T1"></typeparam>
        /// <typeparam name="T2"></typeparam>
        /// <param name="selectNode"></param>
        private void TestSingleSelection <T1, T2>(SelectionBase <T1, T2> selectNode)
        {
            var element = GetPreviewValue(selectNode.GUID.ToString());

            Assert.NotNull(element);
            selectNode.ClearSelections();
            RunCurrentModel();
            element = GetPreviewValue(selectNode.GUID.ToString());
            Assert.Null(element);
        }
Пример #2
0
        /// <summary>
        /// Test running the node, then clearing the
        /// selection and running again.
        /// </summary>
        /// <typeparam name="T1"></typeparam>
        /// <typeparam name="T2"></typeparam>
        /// <param name="selectNode"></param>
        private void TestMultipleSelection <T1, T2>(SelectionBase <T1, T2> selectNode)
        {
            var elements = GetPreviewCollection(selectNode.GUID.ToString());

            Assert.NotNull(elements);
            Assert.Greater(elements.Count(), 0);
            selectNode.ClearSelections();
            RunCurrentModel();
            elements = GetPreviewCollection(selectNode.GUID.ToString());
            Assert.Null(elements);
        }