aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/GrpcCoreTests/ServerTest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/csharp/GrpcCoreTests/ServerTest.cs')
-rw-r--r--src/csharp/GrpcCoreTests/ServerTest.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/csharp/GrpcCoreTests/ServerTest.cs b/src/csharp/GrpcCoreTests/ServerTest.cs
new file mode 100644
index 0000000000..6e13bc735f
--- /dev/null
+++ b/src/csharp/GrpcCoreTests/ServerTest.cs
@@ -0,0 +1,23 @@
+using System;
+using NUnit.Framework;
+using Google.GRPC.Core.Internal;
+using Google.GRPC.Core;
+using Google.GRPC.Core.Utils;
+
+namespace Google.GRPC.Core.Tests
+{
+ public class ServerTest
+ {
+ [Test]
+ public void StartAndShutdownServer() {
+
+ Server server = new Server();
+ server.AddPort("localhost:" + PortPicker.PickUnusedPort());
+ server.Start();
+ server.ShutdownAsync().Wait();
+
+ GrpcEnvironment.Shutdown();
+ }
+
+ }
+}