示例#1
0
        public void WideFileTest()
        {
            var wideStream = StreamFormat.CreateFromFile("wide.json");

            Assert.NotNull(wideStream);
            Assert.True(wideStream is StreamFormat);
        }
示例#2
0
        public void NarrowFileTest()
        {
            var narrowStream = StreamFormat.CreateFromFile("narrow.json");

            Assert.NotNull(narrowStream);
            Assert.True(narrowStream is NarrowFormat);
        }
示例#3
0
        public void WideBatchFileTest()
        {
            var batchStream = StreamFormat.CreateFromFile("wide_batch.json");

            Assert.NotNull(batchStream);
            Assert.True(batchStream is BatchFormat);
        }
示例#4
0
        public void NarrowBatchFileTest()
        {
            var batchStream = StreamFormat.CreateFromFile("narrow_batch.json");

            Assert.NotNull(batchStream);
            Assert.True(batchStream is NarrowBatchFormat);
        }
示例#5
0
 public void BadFileTest()
 {
     Assert.Throws <ArgumentException>(() => StreamFormat.CreateFromFile("missing_entity.json"));
 }