public void Start_ShouldThrow([Values(HostConfiguration.Debug, HostConfiguration.Release)] HostConfiguration configuration) { using IHost appHost = new AppHost(); using IHostRunner hostRunner = new DefaultHostRunner(appHost, configuration); Assert.Throws <Exception>(hostRunner.Start); }
public static void Main(string[] args) { DefaultHostRunner.Run <ExampleHost>(args); }