Procházet zdrojové kódy

add unstarted server test

Jan Tattermusch před 9 roky
rodič
revize
95e547ef9e
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  1. 7 0
      src/csharp/Grpc.Core.Tests/ServerTest.cs

+ 7 - 0
src/csharp/Grpc.Core.Tests/ServerTest.cs

@@ -93,5 +93,12 @@ namespace Grpc.Core.Tests
 
             server.ShutdownAsync().Wait();
         }
+
+        [Test]
+        public void UnstartedServerDoesNotPreventShutdown()
+        {
+            // just create a server, don't start it, and make sure it doesn't prevent shutdown.
+            var server = new Server();
+        }
     }
 }