示例#1
0
#pragma warning restore xUnit1019
        public void AllowCustomOsSelection(string osValue, string expectedValue)
        {
            Assert.Collection(
                DllMapOsSelection.GetOsValues(osValue),
                osSelection =>
            {
                Assert.False(osSelection.Invert);
                Assert.Equal(expectedValue, osSelection.OsPlatform.ToString());
            });
        }
示例#2
0
#pragma warning restore xUnit1019
        public void AllowSimpleOsSelection(string osValue, OSPlatform osPlatform)
        {
            Assert.Collection(
                DllMapOsSelection.GetOsValues(osValue),
                osSelection =>
            {
                Assert.False(osSelection.Invert);
                Assert.Equal(osPlatform, osSelection.OsPlatform);
            });
        }
示例#3
0
 public void CustomOsPlatformIsRemembered()
 {
     Assert.Collection(
         DllMapOsSelection.GetOsValues("whatever"),
         osSelection =>
     {
         Assert.False(osSelection.Invert);
         Assert.Equal("WHATEVER", osSelection.OsPlatform.ToString());
     });
     Assert.Collection(
         DllMapOsSelection.GetOsValues("WhAtEvEr"),
         osSelection =>
     {
         Assert.False(osSelection.Invert);
         Assert.Equal("WHATEVER", osSelection.OsPlatform.ToString());
     });
 }
示例#4
0
 public void AllowEmptyOsSelection(string osValue)
 {
     Assert.Empty(DllMapOsSelection.GetOsValues(osValue));
 }