public void Skips_BothWindowsAndLinux() { // Act var osSkipAttribute = new OSSkipConditionAttribute(OperatingSystems.Linux | OperatingSystems.Windows, OperatingSystems.Windows, string.Empty); var osSkipAttributeLinux = new OSSkipConditionAttribute(OperatingSystems.Linux | OperatingSystems.Windows, OperatingSystems.Linux, string.Empty); // Assert Assert.False(osSkipAttribute.IsMet); Assert.False(osSkipAttributeLinux.IsMet); }
public void Skips_BothMacOSXAndLinux() { // Act var osSkipAttributeLinux = new OSSkipConditionAttribute(OperatingSystems.Linux | OperatingSystems.MacOSX, OperatingSystems.Linux, string.Empty); var osSkipAttributeMacOSX = new OSSkipConditionAttribute(OperatingSystems.Linux | OperatingSystems.MacOSX, OperatingSystems.MacOSX, string.Empty); // Assert Assert.False(osSkipAttributeLinux.IsMet); Assert.False(osSkipAttributeMacOSX.IsMet); }
public void Skips_BothMacOSXAndWindows() { // Act var osSkipAttribute = new OSSkipConditionAttribute(OperatingSystems.Windows | OperatingSystems.MacOSX, OperatingSystems.Windows, string.Empty); var osSkipAttributeMacOSX = new OSSkipConditionAttribute(OperatingSystems.Windows | OperatingSystems.MacOSX, OperatingSystems.MacOSX, string.Empty); // Assert Assert.False(osSkipAttribute.IsMet); Assert.False(osSkipAttributeMacOSX.IsMet); }
public void DoesNotSkip_WhenOperatingSystemDoesNotMatch() { // Act var osSkipAttribute = new OSSkipConditionAttribute( OperatingSystems.Linux, OperatingSystems.Windows); // Assert Assert.True(osSkipAttribute.IsMet); }
public void Skips_WhenOperatingSystemMatches() { // Act var osSkipAttribute = new OSSkipConditionAttribute( OperatingSystems.Windows, OperatingSystems.Windows); // Assert Assert.False(osSkipAttribute.IsMet); }
public void Skips_WhenOnlyOperatingSystemIsSupplied() { // Act var osSkipAttribute = new OSSkipConditionAttribute( OperatingSystems.Windows, OperatingSystems.Windows, "2.5"); // Assert Assert.False(osSkipAttribute.IsMet); }
public void Skips_WhenVersionsMatchesOutOfMultiple() { // Act var osSkipAttribute = new OSSkipConditionAttribute( OperatingSystems.Windows, OperatingSystems.Windows, "2.5", "10.0", "3.4", "2.5"); // Assert Assert.False(osSkipAttribute.IsMet); }
public void Skips_WhenVersionsMatches(string currentOSVersion, string skipVersion) { // Act var osSkipAttribute = new OSSkipConditionAttribute( OperatingSystems.Windows, OperatingSystems.Windows, currentOSVersion, skipVersion); // Assert Assert.False(osSkipAttribute.IsMet); }
public void DoesNotSkip_WhenVersionsDoNotMatch() { // Act var osSkipAttribute = new OSSkipConditionAttribute( OperatingSystems.Windows, OperatingSystems.Windows, "2.5", "10.0"); // Assert Assert.True(osSkipAttribute.IsMet); }