public void VerifyPlatformLevelAtMaximumIsUnchanged() { if (!SDKUtility.sdkAvailable) { Assert.Ignore("Cannot locate Lumin SDK"); } var max = PlatformLevelSelector.GetChoices().Max(); Assert.That(PlatformLevelSelector.EnsureValidValue(max), Is.EqualTo(max)); }
public void VerifyPlatformLevelAboveMaximumIsSetToMaximum() { if (!SDKUtility.sdkAvailable) { Assert.Ignore("Cannot locate Lumin SDK"); } var current = PlatformLevelSelector.GetChoices().Max() + 1; Assert.That(PlatformLevelSelector.EnsureValidValue(current), Is.EqualTo(PlatformLevelSelector.GetChoices().Max())); }