コード例 #1
0
        public void SimpleLine()
        {
            const string text = "Description     : Technical Substitution Header File";
            IModelParser parser = new DescriptionParser();

            IReader reader = Reader.CreateStringReader(text);
            Assert.That(parser.Matches(reader), Is.True);
            IModel model = parser.Parse(reader);
            Assert.That(model, Is.Not.Null);
            Assert.That(model, Is.InstanceOf<StringModel>());

            Assert.That(model.ToString(), Is.EqualTo("[Description] Technical Substitution Header File"));
        }