public static void test_ColorNameParse(afh.Application.Log log) { System.Action <string> test = delegate(string text){ int i = 0; afh.Rendering.ColorName c = new afh.Rendering.ColorName(text, ref i); log.WriteLine("入力文字列 : [{0}]", text); log.WriteLine("読み取り文字列: [{0}]", text.Substring(0, i)); log.WriteLine("読み取り結果 : {0}", c); log.WriteLine(); }; test("#012345"); test("#abAbCD"); test("#FFdd88aa"); test("#dfaabbcc"); test("#747"); test("#9876"); test("#675 #456 #436"); test("#FfA"); test("ReD"); test("rgb (1 , 2 , 3 )"); test("hsv(12.6,29.7,200) Hello"); }