public void TestRepeaterCalculation()
        {
            ExpressionEvaluator evaluator = new ExpressionEvaluator(new Application(this.postedData));
            ApplicationDataPath path = new ApplicationDataPath();
            path.Append("key4");

            path.First().Index = 0;
            Assert.AreEqual(50, evaluator.Evaluate<int>("{%child1%} - {%child2%}", path));

            path.First().Index = 1;
            Assert.AreEqual(150, evaluator.Evaluate<int>("{%child1%} - {%child2%}", path));
        }
 public void LeavesObjectInCorrectState()
 {
     ApplicationDataPath path = new ApplicationDataPath();
     path.Append("Foo", 42);
     path.Append("Bar", 16);
     path.TraverseUp();
     Assert.AreEqual(42, path.First().Index);
 }