AjTalk.Tests.ChunkReaderTests.ReadLibraryBehavior C# (CSharp) Method

ReadLibraryBehavior() private method

private ReadLibraryBehavior ( ) : void
return void
        public void ReadLibraryBehavior()
        {
            ChunkReader reader = new ChunkReader(@"Behavior.st");

            string chunk = reader.GetChunk();
            Assert.IsNotNull(chunk);

            chunk = reader.GetChunk();
            Assert.IsNotNull(chunk);
            Assert.IsFalse(chunk.StartsWith("!"));

            chunk = reader.GetChunk();
            Assert.IsNotNull(chunk);
            Assert.IsTrue(chunk.StartsWith("!"));

            chunk = reader.GetChunk();
            Assert.IsNotNull(chunk);
            Assert.IsFalse(chunk.StartsWith("!"));

            chunk = reader.GetChunk();
            Assert.IsNotNull(chunk);
            Assert.IsFalse(chunk.StartsWith("!"));

            chunk = reader.GetChunk();
            Assert.IsNotNull(chunk);
            Assert.IsFalse(chunk.StartsWith("!"));

            chunk = reader.GetChunk();
            Assert.IsNotNull(chunk);
            Assert.IsTrue(chunk.StartsWith("!"));

            reader.Close();
        }