public void SetUpFixture()
		{
			MockComponentCreator componentCreator = new MockComponentCreator();
			MethodCall callExpression = RubyParserHelper.GetMethodCall(code);			
			RubyCodeDeserializer deserializer = new RubyCodeDeserializer(componentCreator);
			args = deserializer.GetArguments(callExpression);
		}
Exemplo n.º 2
0
 string GetRequireString(Expression[] expressions)
 {
     foreach (Expression expression in expressions)
     {
         StringConstructor stringCtor = expression as StringConstructor;
         if (stringCtor != null)
         {
             return((string)RubyCodeDeserializer.Deserialize(stringCtor));
         }
     }
     return(null);
 }
		public void SetUpFixture()
		{
			componentCreator = new MockComponentCreator();

			SimpleAssignmentExpression assignment = RubyParserHelper.GetSimpleAssignmentExpression(GetRubyCode());
			rhsAssignmentExpression = assignment.Right;
			
			mockDesignerLoaderHost = new MockDesignerLoaderHost();
			typeResolutionService = mockDesignerLoaderHost.TypeResolutionService;
			RubyCodeDeserializer deserializer = new RubyCodeDeserializer(componentCreator);
			deserializedObject = deserializer.Deserialize(rhsAssignmentExpression);
		}
		public void SetUpFixture()
		{
			componentCreator = new MockComponentCreator();
			listViewItem1 = (ListViewItem)componentCreator.CreateInstance(typeof(ListViewItem), new object[0], "listViewItem1", false);

			MethodCall callExpression = RubyParserHelper.GetMethodCall(RubyCode);
			
			mockDesignerLoaderHost = new MockDesignerLoaderHost();
			typeResolutionService = mockDesignerLoaderHost.TypeResolutionService;
			RubyCodeDeserializer deserializer = new RubyCodeDeserializer(componentCreator);
			deserializedObject = deserializer.Deserialize(callExpression.Arguments.Expressions[0]);
		}
Exemplo n.º 5
0
		public RubyComponentWalker(IComponentCreator componentCreator)
		{
			this.componentCreator = componentCreator;
			deserializer = new RubyCodeDeserializer(componentCreator);
		}
		public void SetUpFixture()
		{
			componentCreator = new MockComponentCreator();
			deserializer = new RubyCodeDeserializer(componentCreator);
		}
 public RubyComponentWalker(IComponentCreator componentCreator)
 {
     this.componentCreator = componentCreator;
     deserializer          = new RubyCodeDeserializer(componentCreator);
 }
		public void Init()
		{
			componentCreator = new MockComponentCreator();
			MockDesignerLoaderHost mockDesignerLoaderHost = new MockDesignerLoaderHost();
			deserializer = new RubyCodeDeserializer(componentCreator);		
		}