Exemple #1
0
        public void TestCanFindSlotOnTestNode()
        {
            var node = new TestableNode();

            Assert.AreEqual(6, node.GetSlots <ISlot>().Count());
            Assert.IsNotNull(node.FindInputSlot <ISlot>(TestableNode.Input0));
            Assert.IsNull(node.FindInputSlot <ISlot>(TestableNode.Output0));
            Assert.IsNotNull(node.FindOutputSlot <ISlot>(TestableNode.Output0));
            Assert.IsNull(node.FindOutputSlot <ISlot>(TestableNode.Input0));

            Assert.IsNotNull(node.FindSlot <ISlot>(TestableNode.Input0));
            Assert.IsNotNull(node.FindSlot <ISlot>(TestableNode.Output0));
            Assert.IsNull(node.FindSlot <ISlot>(555));
        }