#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()); }); }
#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); }); }
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()); }); }
public void AllowEmptyOsSelection(string osValue) { Assert.Empty(DllMapOsSelection.GetOsValues(osValue)); }