public void Test_Pin_ReturnsNotNull() { SampleNode sampleNode = new SampleNode(); Pin pin = sampleNode.Pin(x => x.Output1); Assert.That(pin, Is.Not.Null); Assert.That(pin.Name, Is.EqualTo("Output1")); }
public void Test_Pin_Throws_IfExpressionIsNotAProperty() { SampleNode sampleNode = new SampleNode(); Assert.That(delegate { sampleNode.Pin(x => x.GetData()); }, Throws.Exception); }
public void Test_Pin_ByName_From_BaseTypeReturnsNotNull_() { WorkflowNode sampleNode = new SampleNode(); Pin pin = sampleNode.Pin("Output1"); Assert.That(pin, Is.Not.Null); Assert.That(pin.Name, Is.EqualTo("Output1")); }