コード例 #1
0
        public void Constructor_NullTimestampsMapper_Throws()
        {
            ITimestampsMapper nullMapper = null;

            Assert.Throws <ArgumentNullException>(
                () => new SubtitleToUnvalidatedMapper(nullMapper));
        }
コード例 #2
0
        public SubtitleToUnvalidatedMapper(
            ITimestampsMapper timestampsMapper)
        {
            if (timestampsMapper == null)
            {
                throw new ArgumentNullException(nameof(timestampsMapper));
            }

            this.timestampsMapper = timestampsMapper;
        }
コード例 #3
0
 private SubtitleToUnvalidatedMapper CreateMapper(
     ITimestampsMapper timestampsMapper)
 {
     return(new SubtitleToUnvalidatedMapper(timestampsMapper));
 }