Esempio n. 1
0
        public void PropertyAccessFinished()
        {
            CurrentPropertyManager.PreparePropertyAccess("prop");
            CurrentPropertyManager.PropertyAccessFinished();

            Assert.That(CurrentPropertyManager.CurrentPropertyName, Is.Null);
        }
Esempio n. 2
0
 private void CleanupProperties()
 {
     while (CurrentPropertyManager.CurrentPropertyName != null)
     {
         CurrentPropertyManager.PropertyAccessFinished();
     }
 }
Esempio n. 3
0
        public void PropertyStack()
        {
            CurrentPropertyManager.PreparePropertyAccess("1");
            Assert.That(CurrentPropertyManager.CurrentPropertyName, Is.EqualTo("1"));
            CurrentPropertyManager.PreparePropertyAccess("2");
            Assert.That(CurrentPropertyManager.CurrentPropertyName, Is.EqualTo("2"));
            CurrentPropertyManager.PreparePropertyAccess("3");
            Assert.That(CurrentPropertyManager.CurrentPropertyName, Is.EqualTo("3"));

            CurrentPropertyManager.PropertyAccessFinished();
            Assert.That(CurrentPropertyManager.CurrentPropertyName, Is.EqualTo("2"));
            CurrentPropertyManager.PropertyAccessFinished();
            Assert.That(CurrentPropertyManager.CurrentPropertyName, Is.EqualTo("1"));
            CurrentPropertyManager.PropertyAccessFinished();
            Assert.That(CurrentPropertyManager.CurrentPropertyName, Is.Null);
        }
Esempio n. 4
0
 public void GetAndCheckCurrentPropertyName()
 {
     CurrentPropertyManager.PreparePropertyAccess("prop");
     Assert.That(CurrentPropertyManager.GetAndCheckCurrentPropertyName(), Is.EqualTo("prop"));
 }
Esempio n. 5
0
 public void PropertyAccessFinished_NoCurrentProperty()
 {
     CurrentPropertyManager.PropertyAccessFinished();
 }
Esempio n. 6
0
 public void PreparePropertyAccess()
 {
     CurrentPropertyManager.PreparePropertyAccess("prop");
     Assert.That(CurrentPropertyManager.CurrentPropertyName, Is.EqualTo("prop"));
 }
Esempio n. 7
0
 public void GetAndCheckCurrentPropertyName_NoCurrentProperty()
 {
     CurrentPropertyManager.GetAndCheckCurrentPropertyName();
 }
Esempio n. 8
0
 public void PreparePropertyAccess(string propertyName)
 {
     CurrentPropertyManager.PreparePropertyAccess(propertyName);
 }