コード例 #1
0
        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));
        }
コード例 #2
0
        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()));
        }