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); }
private void OnEnable() { titleContent.image = EditorGUIUtility.Load("Script Editor/CompileOptionsWindow Icon.png") as Texture2D; _node = MessageService.Receivers.CreateChild(this); ResetCache(); }
static DialogueShowHideRenderer() { RootMessenger = MessageService.Receivers.CreateChild(new EmptyMessenger()); }