Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static void Main(string[] args)
 {
     DefaultHostRunner.Run <ExampleHost>(args);
 }