Skip to content

Commit

Permalink
Add last tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimeatstariongroup committed Sep 21, 2023
1 parent e4818cd commit 4c21840
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,46 @@ public void VerifyComponent()
Assert.Multiple(() =>
{
Assert.That(bookEditorColumn.Instance, Is.Not.Null);
Assert.That(bookEditorColumn.Instance.HeaderHexColor, Is.EqualTo("#eba434"));
Assert.That(bookEditorColumn.Instance.HeaderTitle, Is.EqualTo("Books"));
Assert.That(bookEditorColumn.Instance.Items, Is.Null.Or.Empty);
Assert.That(bookEditorColumn.Instance.DrawLeftLines, Is.False);
Assert.That(bookEditorColumn.Instance.CollapseButtonIconClass, Is.EqualTo("no-display"));
Assert.That(bookEditorColumn.Instance.CssClass, Is.EqualTo("book-node"));
Assert.That(bookEditorColumn.Instance.OnCreateNewItemClick.HasDelegate, Is.True);
Assert.That(bookEditorColumn.Instance.OnEditClicked.HasDelegate, Is.True);
Assert.That(bookEditorColumn.Instance.OnDeleteClicked.HasDelegate, Is.True);

Assert.That(sectionEditorColumn.Instance, Is.Not.Null);
Assert.That(sectionEditorColumn.Instance.HeaderHexColor, Is.EqualTo("#56bd08"));
Assert.That(sectionEditorColumn.Instance.HeaderTitle, Is.EqualTo("Sections"));
Assert.That(sectionEditorColumn.Instance.Items, Is.Null.Or.Empty);
Assert.That(sectionEditorColumn.Instance.DrawLeftLines, Is.True);
Assert.That(sectionEditorColumn.Instance.CssClass, Is.EqualTo("section-node"));
Assert.That(sectionEditorColumn.Instance.OnCreateNewItemClick.HasDelegate, Is.True);
Assert.That(sectionEditorColumn.Instance.OnEditClicked.HasDelegate, Is.True);
Assert.That(sectionEditorColumn.Instance.OnDeleteClicked.HasDelegate, Is.True);

Assert.That(pageEditorColumn.Instance, Is.Not.Null);
Assert.That(pageEditorColumn.Instance.HeaderHexColor, Is.EqualTo("#51dded"));
Assert.That(pageEditorColumn.Instance.HeaderTitle, Is.EqualTo("Pages"));
Assert.That(pageEditorColumn.Instance.Items, Is.Null.Or.Empty);
Assert.That(pageEditorColumn.Instance.DrawLeftLines, Is.True);
Assert.That(pageEditorColumn.Instance.CssClass, Is.EqualTo("page-node"));
Assert.That(pageEditorColumn.Instance.OnCreateNewItemClick.HasDelegate, Is.True);
Assert.That(pageEditorColumn.Instance.OnEditClicked.HasDelegate, Is.True);
Assert.That(pageEditorColumn.Instance.OnDeleteClicked.HasDelegate, Is.True);

Assert.That(noteEditorColumn.Instance, Is.Not.Null);
Assert.That(noteEditorColumn.Instance, Is.Not.Null);
Assert.That(noteEditorColumn.Instance.HeaderHexColor, Is.EqualTo("#eb6075"));
Assert.That(noteEditorColumn.Instance.HeaderTitle, Is.EqualTo("Notes"));
Assert.That(noteEditorColumn.Instance.Items, Is.Null.Or.Empty);
Assert.That(noteEditorColumn.Instance.DrawLeftLines, Is.True);
Assert.That(noteEditorColumn.Instance.CssClass, Is.EqualTo("note-node"));
Assert.That(noteEditorColumn.Instance.OnCreateNewItemClick.HasDelegate, Is.True);
Assert.That(noteEditorColumn.Instance.OnEditClicked.HasDelegate, Is.True);
Assert.That(noteEditorColumn.Instance.OnDeleteClicked.HasDelegate, Is.True);
});
}
}
Expand Down

0 comments on commit 4c21840

Please sign in to comment.