コード例 #1
0
        public void GetIsFullyAnnotated_FullySegmentedButSomeSegmentsIgnored_ReturnsTrue()
        {
            CreateAnnotationFilesForSegmentsCreatedInSetup();
            var timeTier = _collection.GetTimeTier();

            _collection.InsertTierSegment(10f);
            _collection.MarkSegmentAsIgnored(0);
            _collection.InsertTierSegment((float)timeTier.TotalTime.TotalSeconds);
            _collection.MarkSegmentAsIgnored(timeTier.Segments.Count - 1);
            Assert.IsTrue(_collection.GetIsFullyAnnotated(OralAnnotationType.CarefulSpeech));
            Assert.IsTrue(_collection.GetIsFullyAnnotated(OralAnnotationType.Translation));
        }