Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
 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));
 }