Exemple #1
0
        public void SliceNodesAreConstantIfTheArrayStartAndEndAreConstant()
        {
            subject = new SliceNode(new SourcePosition(2, 4), new StringNode(new SourcePosition(2, 5), "foo"), new IntNode(new SourcePosition(2, 6), 1), new IntNode(new SourcePosition(2, 6), 2));

            Assert.AreEqual(subject.IsConstant(), true);
        }
Exemple #2
0
 public void SliceNodesAreNotConstantIfTheArrayStartAndEndAreNotConstant()
 {
     Assert.AreEqual(subject.IsConstant(), false);
 }