Example #1
0
        public void CreateByTimeSpanTest(int expected, FrameRate frameRate, bool isDropFrame, string input)
        {
            var attempt = Timecode.FromString(input, frameRate, isDropFrame).ToTimeSpan();
            var actual  = Timecode.FromTimeSpan(attempt, frameRate, isDropFrame);

            Assert.Equal(expected, actual.TotalFrames);
        }