public void ParseEmpty() { var textCom = new An8TextCom(); textCom.Parse( @" "); }
public void ParseOther() { var textCom = new An8TextCom(); textCom.Parse( @" other { } "); }
public void ParseFontSize() { var textCom = new An8TextCom(); textCom.Parse( @" size { 2 } "); Assert.Equal(2, textCom.FontSize); }
public void ParseFontFamily() { var textCom = new An8TextCom(); textCom.Parse( @" typeface { ""abc"" } "); Assert.Equal("abc", textCom.FontFamily); }
public void ParseText() { var textCom = new An8TextCom(); textCom.Parse( @" string { L""abc"" } "); Assert.Equal("abc", textCom.Text); }
public void ParseItalic() { var textCom = new An8TextCom(); textCom.Parse( @" italic { } "); Assert.True(textCom.IsItalic); }
public void ParseBold() { var textCom = new An8TextCom(); textCom.Parse( @" bold { } "); Assert.True(textCom.IsBold); }