public void FromGUIWorkerTest()
        {
            SynchronizationContext synchronizationContext = new SynchronizationContext();

            SynchronizationContext.SetSynchronizationContext(new SynchronizationContext());
            TaskShedulerWraper synchronizationContextTaskShedulerWraper = TaskShedulerWraper.Create();

            Assert.IsInstanceOf(typeof(TaskScheduler), synchronizationContextTaskShedulerWraper.FromGUIWorker());
        }
        public void FromGUIWorker_instancesAreTheSameTest()
        {
            TaskShedulerWraper synchronizationContextTaskShedulerWraper = TaskShedulerWraper.Create();

            Assert.Throws(typeof(System.InvalidOperationException), delegate { synchronizationContextTaskShedulerWraper.FromGUIWorker(); });
        }