public void AppRatingTypeTest() { // get test Assert.That(AppRatingType.Level.ToString(), Is.EqualTo("level")); Assert.That(AppRatingType.Points.ToString(), Is.EqualTo("points")); // parse test Assert.That(AppRatingType.FromJsonString("level"), Is.EqualTo(AppRatingType.Level)); Assert.That(AppRatingType.FromJsonString("points"), Is.EqualTo(AppRatingType.Points)); }
public void AppRatingTypeTest() { // get test Assert.That(actual: AppRatingType.Level.ToString(), expression: Is.EqualTo(expected: "level")); Assert.That(actual: AppRatingType.Points.ToString(), expression: Is.EqualTo(expected: "points")); // parse test Assert.That(actual: AppRatingType.FromJsonString(response: "level"), expression: Is.EqualTo(expected: AppRatingType.Level)); Assert.That(actual: AppRatingType.FromJsonString(response: "points"), expression: Is.EqualTo(expected: AppRatingType.Points)); }