public void Test_PastTimeSettingsAddTask_EmptyList()
 {
     addWindowInstance.ConfirmChanges();
     Assert.IsTrue(mainWindowInstance.EmptyView.Displayed);
 }
        public void Test_Notification_NotificationIsInBar()
        {
            mainWindowInstance.AddButton.Click();
            editTaskWindowInstance.SetTaskName("Get the camera")
            .SwitchReminder();
            int minutes;

            for (; ;)
            {
                string   timeToSet      = "";
                string[] deviceDateTime = driver.DeviceTime.Split(' ');
                string[] deviceTime     = deviceDateTime[3].Split(':');
                Int32.TryParse(deviceTime[0], out int hours);
                Int32.TryParse(deviceTime[1], out minutes);
                if (hours <= 12)
                {
                    if (minutes < 10)
                    {
                        timeToSet  = hours.ToString() + ":0" + (minutes + 1).ToString();
                        timeToSet += "am";
                    }
                    else
                    {
                        timeToSet  = hours.ToString() + ":" + (minutes + 1).ToString();
                        timeToSet += "am";
                    }
                }
                else
                {
                    if (minutes < 10)
                    {
                        timeToSet  = (hours - 12).ToString() + ":0" + (minutes + 1).ToString();
                        timeToSet += "pm";
                    }
                    else
                    {
                        timeToSet  = (hours - 12).ToString() + ':' + (minutes + 1).ToString();
                        timeToSet += "pm";
                    }
                }
                editTaskWindowInstance.SetTime(timeToSet);
                if (minutes + 1 == DateTime.Now.Minute)
                {
                    continue;
                }
                else
                {
                    editTaskWindowInstance.ConfirmChanges();
                    break;
                }
            }
            do
            {
                if (DateTime.Now.Minute == minutes + 1 && DateTime.Now.Second == 15)
                {
                    break;
                }
            } while (true);
            driver.Swipe(750, 1, 750, 750, 350);
            Assert.AreEqual("Get the camera", driver.FindElementById("android:id/status_bar_latest_event_content")
                            .FindElementById("android:id/title").Text);
        }