-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Milestone
Description
Ubuntu 14.04 is no longer relevant.
aspnetcore/src/Testing/test/EnvironmentVariableSkipConditionTest.cs
Lines 113 to 150 in bce4dd5
public void IsMet_Matches_WhenRunOnMatchIsFalse(string environmentVariableValue) | |
{ | |
// Arrange | |
var attribute = new EnvironmentVariableSkipConditionAttribute( | |
new TestEnvironmentVariable("LinuxFlavor", environmentVariableValue), | |
"LinuxFlavor", | |
"Ubuntu14.04") | |
{ | |
// Example: Run this test on all OSes except on "Ubuntu14.04" | |
RunOnMatch = false | |
}; | |
// Act | |
var isMet = attribute.IsMet; | |
// Assert | |
Assert.True(isMet); | |
} | |
[Fact] | |
public void IsMet_DoesNotMatch_WhenRunOnMatchIsFalse() | |
{ | |
// Arrange | |
var attribute = new EnvironmentVariableSkipConditionAttribute( | |
new TestEnvironmentVariable("LinuxFlavor", "Ubuntu14.04"), | |
"LinuxFlavor", | |
"Ubuntu14.04") | |
{ | |
// Example: Run this test on all OSes except on "Ubuntu14.04" | |
RunOnMatch = false | |
}; | |
// Act | |
var isMet = attribute.IsMet; | |
// Assert | |
Assert.False(isMet); | |
} |
Metadata
Metadata
Assignees
Labels
area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared framework