aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/GrpcCoreTests/ServerTest.cs
blob: b34101bbf597e7baa50b1bf94bc5cfac8a5dbb04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using NUnit.Framework;
using Google.GRPC.Core.Internal;

namespace Google.GRPC.Core.Tests
{
    public class ServerTest
    {
        [Test]
        public void StartAndShutdownServer() {

            Server server = new Server();
            server.AddPort("localhost:" + Utils.PickUnusedPort());
            server.Start();
            server.Shutdown();

            GrpcEnvironment.Shutdown();
        }

    }
}