public void SetUp() { displayBinding = new DerivedRubyFormsDesignerDisplayBinding(); viewContent = new MockTextEditorViewContent(); viewContent.PrimaryFileName = new FileName("test.rb"); viewContent.TextEditor.Document.Text = "text content"; parseInfo = new ParseInformation(new DefaultCompilationUnit(new DefaultProjectContent())); displayBinding.ParseServiceParseInfoToReturn = parseInfo; displayBinding.IsParseInfoDesignable = true; canAttachToDesignableClass = displayBinding.CanAttachTo(viewContent); }
public void SetUp() { displayBinding = new DerivedRubyFormsDesignerDisplayBinding(); viewContent = new MockTextEditorViewContent(); viewContent.PrimaryFileName = "test.rb"; viewContent.TextEditorControl.Text = "text content"; parseInfo = new ParseInformation(); displayBinding.ParseServiceParseInfoToReturn = parseInfo; displayBinding.IsParseInfoDesignable = true; canAttachToDesignableClass = displayBinding.CanAttachTo(viewContent); }
public void CanAttachToNullViewContent() { Assert.IsFalse(displayBinding.CanAttachTo(null)); }