public void SplitParserWorks()
        {
            var target = new SplitParser();

            Assert.True(target.TryGetField(Line, 2, out var actual));
            Assert.Equal("NM", actual);
        }
示例#2
0
 public SelfRefreshingSplitFetcher(ISplitChangeFetcher splitChangeFetcher,
                                   SplitParser splitParser, IReadinessGatesCache gates, int interval, ISplitCache splitCache = null)
 {
     this.splitChangeFetcher = splitChangeFetcher;
     this.splitParser        = splitParser;
     this.gates      = gates;
     this.interval   = interval;
     this.splitCache = splitCache;
 }
        public void CreateInstance_InstanceCreated()
        {
            Exception expected = null;
            Exception actual   = null;

            try
            {
                SplitParser sut = new SplitParser();
            }
            catch (Exception ex)
            {
                actual = ex;
            }
            Assert.Equal(expected, actual);
        }