コード例 #1
0
        public void BuildLinkedTree()
        {
            Exception      expected = null;
            Exception      actual   = null;
            LinkedTreeNode linkedTreeNode;

            try
            {
                linkedTreeNode = new LinkedTreeNode("Program", new SourceData("UnitTest", 0, 0))
                                 .AddChild("Statement", new List <char>()
                {
                    '{'
                }, new SourceData("UnitTest", 0, 1))
                                 .AddNext("Number", new List <char>()
                {
                    '9'
                }, new SourceData("UnitTest", 0, 2))
                                 .AddChild("Statement End", new List <char>()
                {
                    '}'
                }, new SourceData("UnitTest", 0, 3));
            }
            catch (Exception ex)
            {
                actual = ex;
            }
            Assert.Equal(expected, actual);
        }
コード例 #2
0
 private void OnEnable()
 {
     titleContent.image = EditorGUIUtility.Load("Script Editor/CompileOptionsWindow Icon.png") as Texture2D;
     _node = MessageService.Receivers.CreateChild(this);
     ResetCache();
 }
コード例 #3
0
 static DialogueShowHideRenderer()
 {
     RootMessenger = MessageService.Receivers.CreateChild(new EmptyMessenger());
 }