Exemple #1
0
        public void Test_ActivatePersistentGridServer_WaitUntilGridActive()
        {
            var server = new ActivatePersistentGridServer();

            server.Should().NotBeNull();

            server.WaitUntilGridActive(TRexGrids.ImmutableGridName()).Should().BeTrue();
        }
Exemple #2
0
        public void Test_ActivatePersistentGridServer_WaitUntilGridActive_Unavailable()
        {
            const string INVALID_GRID_NAME = "UnitTestsXXX";

            var server = new ActivatePersistentGridServer();

            server.Should().NotBeNull();

            Func <bool> act = () => server.WaitUntilGridActive(INVALID_GRID_NAME);

            act.Should().Throw <TRexException>().WithMessage($"{INVALID_GRID_NAME} is an unknown grid to create a reference for.");
        }