public void ShutdownWebServer() { program.Dispose(); program = null; if (Directory.Exists("App_Data")) { Directory.Delete("App_Data", recursive:true); } }
public void ShutdownWebServer() { program.Dispose(); program = null; if (Directory.Exists("App_Data")) { Directory.Delete("App_Data", recursive: true); } }
public void StartWebServer() { if (program != null) { return; } try { Port = GetRandomUnusedPort(); program = new TestableProgram(Settings); program.Start(ServerUrl); } catch (Exception ex) { // nCrunch does not report exception details, so we save it and rethrow from // IntegrationTestBase.SetUp(). SetupException = ex; } }
private static void Main(string[] args) { TestableProgram tp = new TestableProgram(); tp.b_PropertyChanged(new Program(), "bang"); }