Пример #1
0
 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"));
 }
Пример #2
0
 public void Test_Pin_Throws_IfExpressionIsNotAProperty()
 {
     SampleNode sampleNode = new SampleNode();
      Assert.That(delegate
      {
          sampleNode.Pin(x => x.GetData());
      }, Throws.Exception);
 }
Пример #3
0
 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"));
 }