Ejemplo n.º 1
0
 public void RemoveInnerScope_leftIsTheOnlyExplicit_AllScopesAreRemoved()
 {
     scope = new Scope("abc");
     Scope inner = scope.DefineInnerScope(0, 1);
     scope.RemoveInnerScope(scope.InnerLeftScope);
     Assert.AreEqual(0,scope.GetInnerScopes().Length);
 }
Ejemplo n.º 2
0
 public void RemoveInnerScope_TryRemoveImplicitScope_ThrowsException()
 {
     scope = new Scope("abc");
     Scope inner = scope.DefineInnerScope(1, 1);
     scope.RemoveInnerScope(scope.InnerLeftScope);
 }
Ejemplo n.º 3
0
 public void IsFlat_InnerScopeAddedAndRemoved_Flat()
 {
     scope = new Scope("abc");
     Scope inner = scope.DefineInnerScope(1, 1);
     scope.RemoveInnerScope(inner);
     Assert.IsTrue(scope.IsFlat);
 }