public void Test_Compare_NotSame()
        {
            TimeCueIndexer target1 = new TimeCueIndexer(20, 0, 4);
            TimeCueIndexer target2 = new TimeCueIndexer(20, 20, 4);
            (target2 >= target1).Should().BeTrue();
            (target1 >= target2).Should().BeFalse();

            (target2 <= target1).Should().BeFalse();
            (target1 <= target2).Should().BeTrue();
        }
 public void Test_Const_Default()
 {
     TimeCueIndexer target = new TimeCueIndexer();
     target.ToString().Should().Be("0:0:0");
 }
 public void Test_Incoherent_Const_Second_should_be_less_than_75()
 {
     TimeCueIndexer target = null;
     Action Const = () => target = new TimeCueIndexer(0, 0, 75);
     Const.ShouldThrow<Exception>();
 }
 public void Test_Incoherent_Const_Minute_should_be_less_than_100()
 {
     TimeCueIndexer target = null;
     Action Const = () => target = new TimeCueIndexer(100, 0, 0);
     Const.ShouldThrow<Exception>();
 }
        public void TimeCueIndexer_Converter_TotalFrameConst()
        {

            TimeCueIndexer expected = new TimeCueIndexer(10, 20, 30);

            TimeCueIndexer target = new TimeCueIndexer(expected.TotalFrames);
            target.Frames.Should().Be(30);
            target.Minutes.Should().Be(10);
            target.Seconds.Should().Be(20);
        }
        public void TimeCueIndexerConverter_Converter_Convertion_To_String()
        {
            TimeCueIndexerConverter tcic = new TimeCueIndexerConverter();

            TimeCueIndexer tci = new TimeCueIndexer(1, 2, 3);
            string res = tcic.ConvertToString(tci);
            res.Should().Be("01:02:03");

            TimeCueIndexer tci2 = new TimeCueIndexer(10, 20, 30);
            string res2 = tcic.ConvertToString(tci2);
            res2.Should().Be("10:20:30");

            object Myres = tcic.ConvertTo(null, null, null, typeof(int));
            Myres.Should().BeNull();

            Myres = tcic.ConvertTo(null, null, null, typeof(string));
            Myres.Should().Be(string.Empty);

            Action wt = () => tcic.ConvertTo(null, null, new object(), typeof(string));
            wt.ShouldThrow<Exception>();
        }