Bike.Test.Extensions.NotExist C# (CSharp) Метод

NotExist() публичный статический Метод

public static NotExist ( this context, string var ) : InterpretationContext
context this
var string
Результат InterpretationContext
        public static InterpretationContext NotExist(this InterpretationContext context, 
            string var)
        {
            try
            {
                context.GlobalFrame.Resolve(var);
                Assert.Fail();
            }
            catch (BikeObject bo)
            {
                if (!ErrorFactory.IsNotDefinedError(bo))
                    throw;
            }
            return context;
        }