public void Destroy()
        {
            //Arrange
            var splitClient = new LocalhostClientForTesting("test.splits", _logMock.Object);

            //Act
            splitClient.Destroy();

            //Assert
            Assert.IsTrue(splitClient.IsDestroyed());
        }
示例#2
0
        public void Destroy()
        {
            //Arrange
            var _factoryInstantiationsService = FactoryInstantiationsService.Instance();
            var splitClient = new LocalhostClientForTesting($"{rootFilePath}test.splits");

            //Act
            splitClient.BlockUntilReady(1000);
            splitClient.Destroy();
            var result = ((FactoryInstantiationsService)_factoryInstantiationsService).GetInstantiations();

            //Assert
            Assert.IsTrue(splitClient.IsDestroyed());
            Assert.IsFalse(result.IsEmpty);
        }