public IEnumerator SubThreadCanChangeTitle()
        {
            if (!Native.Supported)
            {
                yield break;
            }

            var       input     = DateTime.Now.ToString(CultureInfo.CurrentCulture);
            Exception exception = null;
            var       thread    = new Thread(() =>
            {
                try
                {
                    StandaloneWindowTitle.Change(input);
                }
                catch (Exception threadException)
                {
                    exception = threadException;
                }
            });

            thread.Start();
            yield return(new WaitWhile(() => thread.IsAlive));

            Assert.Null(exception);
            var outputs = Native.ReadStandaloneWindowTitles();

            Assert.Positive(outputs.Count);
            foreach (var output in outputs)
            {
                Assert.AreEqual(input, output);
            }
        }
        public void MainThreadCanChangeTitle()
        {
            if (!Native.Supported)
            {
                return;
            }
            var input = DateTime.Now.ToString(CultureInfo.CurrentCulture);

            StandaloneWindowTitle.Change(input);
            var outputs = Native.ReadStandaloneWindowTitles();

            Assert.Positive(outputs.Count);
            foreach (var output in outputs)
            {
                Assert.AreEqual(input, output);
            }
        }