public void CompareTo_Object_Returns_Correct_Result(IList <string> fromTo1, IList <string> fromTo2, int expected)
        {
            var TimeFrame1 = new TimeFrame(fromTo1[0], fromTo1[1]);
            var TimeFrame2 = new TimeFrame(fromTo2[0], fromTo2[1]);

            Assert.Equal(expected, TimeFrame1.CompareTo(TimeFrame2 as object));
        }
        public void CompareTo_Object_Throws_ArgumentException()
        {
            var    timeFrame1 = new TimeFrame("08:00", "09:00");
            string timeFrame2 = "08:00 - 09:00";

            Exception ex       = Assert.Throws <ArgumentException>(() => timeFrame1.CompareTo(timeFrame2));
            var       expected = "Object must be of type TimeFrame. (Parameter 'obj')";
            var       actual   = ex.Message;

            Assert.Equal(expected, actual);
        }