本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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));
}
示例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);
}