public void GroupTypeTest() { // get test Assert.That(GroupType.Page.ToString(), Is.EqualTo("page")); Assert.That(GroupType.Group.ToString(), Is.EqualTo("group")); Assert.That(GroupType.Event.ToString(), Is.EqualTo("event")); Assert.That(GroupType.Undefined.ToString(), Is.EqualTo("undefined")); // parse test Assert.That(GroupType.FromJsonString("page"), Is.EqualTo(GroupType.Page)); Assert.That(GroupType.FromJsonString("group"), Is.EqualTo(GroupType.Group)); Assert.That(GroupType.FromJsonString("event"), Is.EqualTo(GroupType.Event)); Assert.That(GroupType.FromJsonString("undefined"), Is.EqualTo(GroupType.Undefined)); }
public void GroupTypeTest() { // get test Assert.That(actual: GroupType.Page.ToString(), expression: Is.EqualTo(expected: "page")); Assert.That(actual: GroupType.Group.ToString(), expression: Is.EqualTo(expected: "group")); Assert.That(actual: GroupType.Event.ToString(), expression: Is.EqualTo(expected: "event")); Assert.That(actual: GroupType.Undefined.ToString(), expression: Is.EqualTo(expected: "undefined")); // parse test Assert.That(actual: GroupType.FromJsonString(response: "page"), expression: Is.EqualTo(expected: GroupType.Page)); Assert.That(actual: GroupType.FromJsonString(response: "group"), expression: Is.EqualTo(expected: GroupType.Group)); Assert.That(actual: GroupType.FromJsonString(response: "event"), expression: Is.EqualTo(expected: GroupType.Event)); Assert.That(actual: GroupType.FromJsonString(response: "undefined"), expression: Is.EqualTo(expected: GroupType.Undefined)); }