public void InitializeAndShutdownGrpcEnvironment() { var env = GrpcEnvironment.GetInstance(); Assert.IsNotNull(env.CompletionQueue); GrpcEnvironment.Shutdown(); }
public void SubsequentInvocations() { var env1 = GrpcEnvironment.GetInstance(); var env2 = GrpcEnvironment.GetInstance(); Assert.IsTrue(object.ReferenceEquals(env1, env2)); GrpcEnvironment.Shutdown(); GrpcEnvironment.Shutdown(); }
public void InitializeAfterShutdown() { var env1 = GrpcEnvironment.GetInstance(); GrpcEnvironment.Shutdown(); var env2 = GrpcEnvironment.GetInstance(); GrpcEnvironment.Shutdown(); Assert.IsFalse(object.ReferenceEquals(env1, env2)); }