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;
        }
 private SubtitleToUnvalidatedMapper CreateMapper(
     ITimestampsMapper timestampsMapper)
 {
     return(new SubtitleToUnvalidatedMapper(timestampsMapper));
 }