Exemplo n.º 1
0
        public void Test_GetPins_ReturnsOnlyInputs()
        {
            SampleNode sampleNode = new SampleNode();
            var inputs = sampleNode.GetPins(PinType.Input);

            Assert.That(inputs, Is.Not.Null);
            Assert.That(inputs.Select(x => x.Name), Is.EquivalentTo(new[] {"Input1", "Input2"}));
        }
Exemplo n.º 2
0
 public void Test_GetPins_ThrowsIfPintypeIsNone()
 {
     SampleNode sampleNode = new SampleNode();
     Assert.That(delegate
     {
         sampleNode.GetPins(PinType.None).ToList();
     }, Throws.Exception);
 }