26 references to TestFeature
Aspire.Playground.Tests (26)
AppHostTests.cs (1)
20
[RequiresFeature(
TestFeature
.Docker)]
ProjectSpecificTests.cs (2)
15
[RequiresFeature(
TestFeature
.Docker)]
61
[RequiresFeature(
TestFeature
.Docker)]
tests\Aspire.TestUtilities\RequiresFeatureAttribute.cs (23)
11
public class RequiresFeatureAttribute(
TestFeature
feature) : Attribute, ITraitAttribute
15
public
TestFeature
Feature { get; } = feature;
30
if ((Feature &
TestFeature
.SSLCertificate) ==
TestFeature
.SSLCertificate && !IsSslCertificateSupported())
34
if ((Feature &
TestFeature
.Playwright) ==
TestFeature
.Playwright && !IsPlaywrightSupported())
38
if ((Feature &
TestFeature
.DevCert) ==
TestFeature
.DevCert && !IsDevCertSupported())
42
if ((Feature &
TestFeature
.Docker) ==
TestFeature
.Docker && !IsDockerSupported())
46
if ((Feature &
TestFeature
.DockerPluginBuildx) ==
TestFeature
.DockerPluginBuildx && !IsDockerPluginBuildxSupported())
137
public static bool IsFeatureSupported(
TestFeature
feature)
140
if ((feature &
TestFeature
.SSLCertificate) ==
TestFeature
.SSLCertificate && !IsSslCertificateSupported())
144
if ((feature &
TestFeature
.Playwright) ==
TestFeature
.Playwright && !IsPlaywrightSupported())
148
if ((feature &
TestFeature
.DevCert) ==
TestFeature
.DevCert && !IsDevCertSupported())
152
if ((feature &
TestFeature
.Docker) ==
TestFeature
.Docker && !IsDockerSupported())
156
if ((feature &
TestFeature
.DockerPluginBuildx) ==
TestFeature
.DockerPluginBuildx && !IsDockerPluginBuildxSupported())