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")); }
public void GetStreamThrowsIfNameIsNull() { var log = new StructuredDocument(); Assert.Throws <ArgumentNullException>(() => log.GetStream(null)); }