public void KeyboardButtonColorTest() { // get test Assert.That(KeyboardButtonColor.Default.ToString(), Is.EqualTo("default")); Assert.That(KeyboardButtonColor.Negative.ToString(), Is.EqualTo("negative")); Assert.That(KeyboardButtonColor.Positive.ToString(), Is.EqualTo("positive")); Assert.That(KeyboardButtonColor.Primary.ToString(), Is.EqualTo("primary")); // parse test Assert.That(KeyboardButtonColor.FromJsonString("default"), Is.EqualTo(KeyboardButtonColor.Default)); Assert.That(KeyboardButtonColor.FromJsonString("negative"), Is.EqualTo(KeyboardButtonColor.Negative)); Assert.That(KeyboardButtonColor.FromJsonString("positive"), Is.EqualTo(KeyboardButtonColor.Positive)); Assert.That(KeyboardButtonColor.FromJsonString("primary"), Is.EqualTo(KeyboardButtonColor.Primary)); }
public void KeyboardButtonColorTest() { // get test Assert.That(actual: KeyboardButtonColor.Default.ToString(), expression: Is.EqualTo(expected: "default")); Assert.That(actual: KeyboardButtonColor.Negative.ToString(), expression: Is.EqualTo(expected: "negative")); Assert.That(actual: KeyboardButtonColor.Positive.ToString(), expression: Is.EqualTo(expected: "positive")); Assert.That(actual: KeyboardButtonColor.Primary.ToString(), expression: Is.EqualTo(expected: "primary")); // parse test Assert.That(actual: KeyboardButtonColor.FromJsonString(response: "default"), expression: Is.EqualTo(expected: KeyboardButtonColor.Default)); Assert.That(actual: KeyboardButtonColor.FromJsonString(response: "negative"), expression: Is.EqualTo(expected: KeyboardButtonColor.Negative)); Assert.That(actual: KeyboardButtonColor.FromJsonString(response: "positive"), expression: Is.EqualTo(expected: KeyboardButtonColor.Positive)); Assert.That(actual: KeyboardButtonColor.FromJsonString(response: "primary"), expression: Is.EqualTo(expected: KeyboardButtonColor.Primary)); }