当前位置: 首页>>代码示例>>C#>>正文


C# Sequence.AddNode方法代码示例

本文整理汇总了C#中Sequence.AddNode方法的典型用法代码示例。如果您正苦于以下问题:C# Sequence.AddNode方法的具体用法?C# Sequence.AddNode怎么用?C# Sequence.AddNode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Sequence的用法示例。


在下文中一共展示了Sequence.AddNode方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Should_count_0_nodes_when_release_all_nodes

 public void Should_count_0_nodes_when_release_all_nodes()
 {
     var sequence = new Sequence("test");
     sequence.AddNode(new SequenceNodeDummy());
     sequence.RemoveAllNodes();
     Check.That(0).IsEqualTo(sequence.NodeCount);
 }
开发者ID:xcasadio,项目名称:FlowGraph,代码行数:7,代码来源:SequenceBaseTest.cs

示例2: Should_remove_node

 public void Should_remove_node()
 {
     var sequence = new Sequence("test");
     var sequenceNodeDummy = new SequenceNodeDummy();
     sequence.AddNode(sequenceNodeDummy);
     sequence.RemoveNode(sequenceNodeDummy);
     Check.That(0).IsEqualTo(sequence.NodeCount);
 }
开发者ID:xcasadio,项目名称:FlowGraph,代码行数:8,代码来源:SequenceBaseTest.cs

示例3: Should_reset_all_nodes

 public void Should_reset_all_nodes()
 {
     var sequence = new Sequence("test");
     var sequenceNodeDummy = new SequenceNodeDummy();
     sequence.AddNode(sequenceNodeDummy);
     sequenceNodeDummy.CustomText = "test";
     sequenceNodeDummy.IsProcessing = true;
     sequence.ResetNodes();
     Check.That(sequenceNodeDummy.CustomText).IsEqualTo(null);
     Check.That(sequenceNodeDummy.IsProcessing).IsEqualTo(false);
 }
开发者ID:xcasadio,项目名称:FlowGraph,代码行数:11,代码来源:SequenceBaseTest.cs

示例4: Should_allocate_memory_in_MemoryStack

 public void Should_allocate_memory_in_MemoryStack()
 {
     var sequence = new Sequence("test");
     var stringNode = new VariableNodeString();
     stringNode.Value = "Test";
     sequence.AddNode(stringNode);
     var memoryStack = new MemoryStack();
     sequence.AllocateAllVariables(memoryStack);
     Check.That(stringNode.Value)
         .IsEqualTo(memoryStack.GetValueFromID(stringNode.Id).Value);
 }
开发者ID:xcasadio,项目名称:FlowGraph,代码行数:11,代码来源:SequenceBaseTest.cs

示例5: Should_return_node_by_id

 public void Should_return_node_by_id()
 {
     var sequence = new Sequence("test");
     SequenceNode sequenceNodeDummy = new SequenceNodeDummy();
     sequence.AddNode(sequenceNodeDummy);
     Check.That(sequenceNodeDummy)
         .IsEqualTo(sequence.GetNodeById(sequenceNodeDummy.Id));
 }
开发者ID:xcasadio,项目名称:FlowGraph,代码行数:8,代码来源:SequenceBaseTest.cs

示例6: Should_count_1_when_add_one_node

 public void Should_count_1_when_add_one_node()
 {
     var sequence = new Sequence("test");
     sequence.AddNode(new SequenceNodeDummy());
     Check.That(1).IsEqualTo(sequence.NodeCount);
 }
开发者ID:xcasadio,项目名称:FlowGraph,代码行数:6,代码来源:SequenceBaseTest.cs


注:本文中的Sequence.AddNode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。