Example #1
0
        public void TestConstructor_ProviderReturnsNoNode_NoLibrariesInLibraryList()
        {
            _nodeProvidorMoq.Setup(p => p.GetRegisteredNodes()).Returns(new List <Node>());
            IProvideNodes NodeProvidorFactory() => _nodeProvidorMoq.Object;

            var nodeSelectorViewModel = new NodePalette(NodeProvidorFactory);

            Assert.AreEqual(0, nodeSelectorViewModel.LibrariesList.Count);
        }
Example #2
0
        public void TestInitialize()
        {
            _nodeProvidorMoq = new Mock <IProvideNodes>();
            _nodeMoq1        = new Mock <Node>();
            _nodeMoq2        = new Mock <Node>();
            IProvideNodes NodeProvidorFactory() => _nodeProvidorMoq.Object;

            _nodeSelectorViewModel = new NodePalette(NodeProvidorFactory);
        }