public void Rapid_Start_Stop_should_not_cause_exceptions() { var localAppHost = new ExampleAppHostHttpListener(); for (int i = 0; i < 100; i++) { localAppHost.Start(GetBaseAddressWithFreePort()); #if !NETCORE_SUPPORT localAppHost.Stop(); #endif } }