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

            //Act
            splitClient.Destroy();

            //Assert
            Assert.IsTrue(splitClient.IsDestroyed());
        }
        public void TrackShouldNotStoreEvents()
        {
            //Arrange
            var splitClient = new LocalhostClientForTesting(@"test.splits", _logMock.Object);

            //Act
            var result = splitClient.Track("test", "test", "test");

            //Assert
            Assert.AreEqual(true, result);
            Assert.IsNull(splitClient.GetEventListener());
        }
Ejemplo n.º 3
0
        public void TrackShouldNotStoreEvents()
        {
            //Arrange
            var splitClient = new LocalhostClientForTesting($"{rootFilePath}test.splits");

            splitClient.BlockUntilReady(1000);

            //Act
            var result = splitClient.Track("test", "test", "test");

            //Assert
            Assert.AreEqual(true, result);
        }
Ejemplo n.º 4
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);
        }