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]); }
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(); AssignmentStatement assignment = PythonParserHelper.GetAssignmentStatement(GetPythonCode()); rhsAssignmentNode = assignment.Right; mockDesignerLoaderHost = new MockDesignerLoaderHost(); typeResolutionService = mockDesignerLoaderHost.TypeResolutionService; PythonCodeDeserializer deserializer = new PythonCodeDeserializer(componentCreator); deserializedObject = deserializer.Deserialize(rhsAssignmentNode); }
public void SetUpFixture() { componentCreator = new MockComponentCreator(); listViewItem1 = (ListViewItem)componentCreator.CreateInstance(typeof(ListViewItem), new object[0], "listViewItem1", false); CallExpression callExpression = PythonParserHelper.GetCallExpression(pythonCode); mockDesignerLoaderHost = new MockDesignerLoaderHost(); typeResolutionService = mockDesignerLoaderHost.TypeResolutionService; PythonCodeDeserializer deserializer = new PythonCodeDeserializer(componentCreator); deserializedObject = deserializer.Deserialize(callExpression.Args[0].Expression); }
public void Init() { componentCreator = new MockComponentCreator(); MockDesignerLoaderHost mockDesignerLoaderHost = new MockDesignerLoaderHost(); deserializer = new PythonCodeDeserializer(componentCreator); }
void CreateDesignerLoaderHostWithoutProjectResourceService() { fakeDesignerLoaderHost = new MockDesignerLoaderHost(); fakeEventBindingService = new MockEventBindingService(); fakeDesignerLoaderHost.AddService(typeof(IEventBindingService), fakeEventBindingService); }
public void Init() { host = new MockDesignerLoaderHost(); host.Container.Add(new Button(), "button1"); nameCreationService = new ScriptingNameCreationService(host); }
void CreateDesignerLoaderHost() { host = new MockDesignerLoaderHost(); }
void CreateParametersForGenerateMethodBodyCall() { serializer = new FakeCodeDomSerializer(); generator.SerializerToReturnFromCreateCodeDomSerializer = serializer; method = MockMethod.CreateMockMethodWithoutAnyAttributes(); host = new MockDesignerLoaderHost(); serializationManager = new FakeDesignerSerializationManager(); }