public void IDEFacadeStartAreEqual() { TextEditor textEditor = new TextEditor(); Compilier compilier = new Compilier(); CLR clr = new CLR(); StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append(textEditor.CreateCode()); stringBuilder.Append(textEditor.SaveCode()); stringBuilder.Append(compilier.Compile()); stringBuilder.Append(clr.Execute()); string constResult = stringBuilder.ToString(); IDEFacade component = new IDEFacade(textEditor, compilier, clr); string result; result = component.Start(); Assert.AreEqual(constResult, result); }
public void CreateApplication(IDEFacade facade) { facade.Start(); facade.Stop(); }