コード例 #1
0
 public void ShutdownWebServer()
 {
     program.Dispose();
     program = null;
     if (Directory.Exists("App_Data"))
     {
         Directory.Delete("App_Data", recursive:true);
     }
 }
コード例 #2
0
 public void ShutdownWebServer()
 {
     program.Dispose();
     program = null;
     if (Directory.Exists("App_Data"))
     {
         Directory.Delete("App_Data", recursive: true);
     }
 }
コード例 #3
0
        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;
            }
        }
コード例 #4
0
        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;
            }
        }
コード例 #5
0
    private static void Main(string[] args)
    {
        TestableProgram tp = new TestableProgram();

        tp.b_PropertyChanged(new Program(), "bang");
    }