// // // // // $Revision$ // using System; using System.Collections.Generic; using ICSharpCode.UnitTesting; namespace Gallio.SharpDevelop { public class GallioEchoConsoleApplicationFactory { public static readonly string AddInTreePath = "/SharpDevelop/UnitTesting/GallioEchoApplication"; string gallioEchoConsoleApplicationFileName = "Gallio.Echo.exe"; public GallioEchoConsoleApplicationFactory() : this(new UnitTestAddInTree()) { } public GallioEchoConsoleApplicationFactory(IAddInTree addInTree) { ReadFileName(addInTree); } void ReadFileName(IAddInTree addInTree) { List items = addInTree.BuildItems(AddInTreePath, this); gallioEchoConsoleApplicationFileName = items[0]; } public GallioEchoConsoleApplication Create(SelectedTests selectedTests) { return new GallioEchoConsoleApplication(selectedTests, gallioEchoConsoleApplicationFileName); } } }