示例#1
0
        public void ParseEmpty()
        {
            var textCom = new An8TextCom();

            textCom.Parse(
                @"
");
        }
示例#2
0
        public void ParseOther()
        {
            var textCom = new An8TextCom();

            textCom.Parse(
                @"
other { }
");
        }
示例#3
0
        public void ParseFontSize()
        {
            var textCom = new An8TextCom();

            textCom.Parse(
                @"
size { 2 }
");

            Assert.Equal(2, textCom.FontSize);
        }
示例#4
0
        public void ParseFontFamily()
        {
            var textCom = new An8TextCom();

            textCom.Parse(
                @"
typeface { ""abc"" }
");

            Assert.Equal("abc", textCom.FontFamily);
        }
示例#5
0
        public void ParseText()
        {
            var textCom = new An8TextCom();

            textCom.Parse(
                @"
string { L""abc"" }
");

            Assert.Equal("abc", textCom.Text);
        }
示例#6
0
        public void ParseItalic()
        {
            var textCom = new An8TextCom();

            textCom.Parse(
                @"
italic { }
");

            Assert.True(textCom.IsItalic);
        }
示例#7
0
        public void ParseBold()
        {
            var textCom = new An8TextCom();

            textCom.Parse(
                @"
bold { }
");

            Assert.True(textCom.IsBold);
        }