Пример #1
0
        public void PropertyAccessFinished()
        {
            CurrentPropertyManager.PreparePropertyAccess("prop");
            CurrentPropertyManager.PropertyAccessFinished();

            Assert.That(CurrentPropertyManager.CurrentPropertyName, Is.Null);
        }
Пример #2
0
 private void CleanupProperties()
 {
     while (CurrentPropertyManager.CurrentPropertyName != null)
     {
         CurrentPropertyManager.PropertyAccessFinished();
     }
 }
Пример #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);
        }
Пример #4
0
 public void PropertyAccessFinished_NoCurrentProperty()
 {
     CurrentPropertyManager.PropertyAccessFinished();
 }