public IEnumerator StopButtonTest() => UniTask.ToCoroutine(async() =>
        {
            networkManagerHud.StopButtonHandler();
            Assert.That(networkManagerHud.OfflineGO.activeSelf, Is.True);
            Assert.That(networkManagerHud.OnlineGO.activeSelf, Is.False);

            await AsyncUtil.WaitUntilWithTimeout(() => !manager.IsNetworkActive);

            Assert.That(manager.IsNetworkActive, Is.False);
        });
Example #2
0
        public IEnumerator StopButtonTest() => RunAsync(async() =>
        {
            networkManagerHud.StopButtonHandler();
            Assert.That(networkManagerHud.OfflineGO.activeSelf, Is.True);
            Assert.That(networkManagerHud.OnlineGO.activeSelf, Is.False);

            await WaitFor(() => !manager.IsNetworkActive);

            Assert.That(manager.IsNetworkActive, Is.False);
        });