public void SetUp() { _blacklistManager = new IDbCommandBlacklistManagerStub(); _methodPreConditions = new SymbolTable(_blacklistManager); _methodPreConditions.MakeSafe("x", Fragment.CreateNamed("SqlFragment")); _methodPreConditions.MakeSafe("l", Fragment.CreateLiteral()); _methodPreConditions.MakeUnsafe("y"); _problemPipeStub = new ProblemPipeStub(); _methodGraphAnalyzer = new MethodGraphAnalyzer(_problemPipeStub); _mocks = new MockRepository(); _methodGraph = _mocks.Stub <IMethodGraph>(); _methodGraphBuilder = _mocks.Stub <IMethodGraphBuilder>(); _parameterSymbolTableBuilder = _mocks.Stub <IInitialSymbolTableBuilder>(); }
public void Parse(IMethodGraphBuilder methodGraphBuilder, IInitialSymbolTableBuilder initialSymbolTableBuilder) { ArgumentUtility.CheckNotNull ("methodGraphBuilder", methodGraphBuilder); ArgumentUtility.CheckNotNull ("parameterSymbolTableBuilder", initialSymbolTableBuilder); var methodGraph = methodGraphBuilder.GetResult(); var initialSymbolTable = initialSymbolTableBuilder.GetResult(); if (methodGraph != null && !methodGraph.IsEmpty() && initialSymbolTable != null) { if (!AnalysisRequired(methodGraph)) return; Parse (methodGraph, initialSymbolTable, methodGraph.InitialBlock, new Dictionary<int, int>()); } }
public void Parse(IMethodGraphBuilder methodGraphBuilder, IInitialSymbolTableBuilder initialSymbolTableBuilder) { ArgumentUtility.CheckNotNull("methodGraphBuilder", methodGraphBuilder); ArgumentUtility.CheckNotNull("parameterSymbolTableBuilder", initialSymbolTableBuilder); var methodGraph = methodGraphBuilder.GetResult(); var initialSymbolTable = initialSymbolTableBuilder.GetResult(); if (methodGraph != null && !methodGraph.IsEmpty() && initialSymbolTable != null) { if (!AnalysisRequired(methodGraph)) { return; } Parse(methodGraph, initialSymbolTable, methodGraph.InitialBlock, new Dictionary <int, int>()); } }
public void SetUp() { _blacklistManager = new IDbCommandBlacklistManagerStub(); _methodPreConditions = new SymbolTable (_blacklistManager); _methodPreConditions.MakeSafe ("x", Fragment.CreateNamed("SqlFragment")); _methodPreConditions.MakeSafe ("l", Fragment.CreateLiteral()); _methodPreConditions.MakeUnsafe ("y"); _problemPipeStub = new ProblemPipeStub(); _methodGraphAnalyzer = new MethodGraphAnalyzer (_problemPipeStub); _mocks = new MockRepository(); _methodGraph = _mocks.Stub<IMethodGraph>(); _methodGraphBuilder = _mocks.Stub<IMethodGraphBuilder>(); _parameterSymbolTableBuilder = _mocks.Stub<IInitialSymbolTableBuilder>(); }