blob: 6e13bc735f6ec6b0e31e64b8dd9591dc89b337e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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();
}
}
}
|