Exemple #1
0
        public void Host_not_started_exception_thrown_when_getting_uri()
        {
            var fakeService = new FakeService();

            Assert.Throws <Exception>(delegate { var _ = fakeService.Uri; }, "Service not started");
            fakeService.Stop();
        }
Exemple #2
0
 public void Host_not_started_exception_thrown_when_getting_uri()
 {
     var fakeService = new FakeService();
     Assert.Throws<Exception>(delegate { var _ = fakeService.Uri; }, "Service not started");
     fakeService.Stop();
 }