예제 #1
0
        public void GetLexemeLine()
        {
            LineFactory LexemLineFactory = new LineFactory();
            LexemLine   line             = LexemLineFactory.MakeLexemLine(0, 1);
            int         i = 0;

            foreach (LexemView view in line.LexemViews)
            {
                Assert.IsInstanceOfType(typeof(Lexeme), view.Lexem);
                Assert.AreEqual(i * FieldSettings.PictureWidth, view.X);
                i++;
            }
            Assert.AreEqual(FieldSettings.ColumnsNumbers, line.LexemViews.Count);
        }