示例#1
0
        public void GetStreamReturnsNamedStream()
        {
            var log    = new StructuredDocument();
            var stream = new StructuredStream("foo");

            log.Streams.Add(stream);
            log.Streams.Add(new StructuredStream("bar"));

            Assert.AreSame(stream, log.GetStream("foo"));
        }
示例#2
0
        public void GetStreamThrowsIfNameIsNull()
        {
            var log = new StructuredDocument();

            Assert.Throws <ArgumentNullException>(() => log.GetStream(null));
        }