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

namespace Google.GRPC.Core.Tests
{
    public class GrpcEnvironmentTest
    {
        [Test]
        public void InitializeAndShutdownGrpcEnvironment() {
            GrpcEnvironment.EnsureInitialized();
            Thread.Sleep(500);
            Assert.IsNotNull(GrpcEnvironment.ThreadPool.CompletionQueue);
            GrpcEnvironment.Shutdown();
        }
    }
}