public void TestObjectContextPath()
 {
     Assert.AreEqual(string.Empty, FluentFormContext.Path);
     FluentFormContext.SpecifyObject("Test");
     Assert.AreEqual("Test", FluentFormContext.Path);
     FluentFormContext.Clear();
     Assert.AreEqual(string.Empty, FluentFormContext.Path);
 }
        public void TestForgetArrayContextPath()
        {
            Assert.AreEqual(string.Empty, FluentFormContext.Path);

            FluentFormContext.SpecifyArray("Test", new object());
            Assert.AreEqual("Test[0]", FluentFormContext.Path);

            FormContextInstance context = FluentFormContext.SpecifyArray("Test", new object(), true);

            Assert.AreEqual("Test[0].Test[0]", FluentFormContext.Path);

            context.Dispose();
            Assert.AreEqual("Test[0]", FluentFormContext.Path);

            FluentFormContext.Clear();
            Assert.AreEqual(string.Empty, FluentFormContext.Path);
        }
 public void TearDown()
 {
     FluentFormContext.Clear();
 }