Exemple #1
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);
        }
Exemple #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);
        }