public void Start() { textEditor.CreateCode(); textEditor.Save(); compiller.Compile(); clr.Execute(); }
public void Start() { _textEditor.CreateCode(); _textEditor.Save(); _compiler.Compile(); _clr.Execute(); }
public void CLRExecuteAreEqual() { string constResult = "Выполнение приложения"; CLR component = new CLR(); string result; result = component.Execute(); Assert.AreEqual(constResult, result); }
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); }