コード例 #1
0
        public void AdjustGapsTest()
        {
            var stubDic  = new Dictionary <string, string>();
            var stubList = new List <int>();

            int result = DurationsBridgeGaps.BridgeGaps(GetSubtitle(), 24, true, 100, stubList, stubDic, false);

            Assert.AreNotEqual(0, result);
            // expedtec to contains both p and p + 1 index of adjusted paragraph
            Assert.AreEqual(6, stubList.Count);
            // expected to contains only index of adjusted paragraph
            Assert.AreEqual(3, stubDic.Count);
        }
コード例 #2
0
 public void InvalidMinMaxTest()
 {
     Assert.AreEqual(0, DurationsBridgeGaps.BridgeGaps(GetSubtitle(), 1000, true, 10, null, null, false));
 }