Пример #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);
        }
Пример #2
0
 public static void Main(string[] args)
 {
     DefaultHostRunner.Run <ExampleHost>(args);
 }