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)
11public class RequiresFeatureAttribute(TestFeature feature) : Attribute, ITraitAttribute 15public TestFeature Feature { get; } = feature; 30if ((Feature & TestFeature.SSLCertificate) == TestFeature.SSLCertificate && !IsSslCertificateSupported()) 34if ((Feature & TestFeature.Playwright) == TestFeature.Playwright && !IsPlaywrightSupported()) 38if ((Feature & TestFeature.DevCert) == TestFeature.DevCert && !IsDevCertSupported()) 42if ((Feature & TestFeature.Docker) == TestFeature.Docker && !IsDockerSupported()) 46if ((Feature & TestFeature.DockerPluginBuildx) == TestFeature.DockerPluginBuildx && !IsDockerPluginBuildxSupported()) 137public static bool IsFeatureSupported(TestFeature feature) 140if ((feature & TestFeature.SSLCertificate) == TestFeature.SSLCertificate && !IsSslCertificateSupported()) 144if ((feature & TestFeature.Playwright) == TestFeature.Playwright && !IsPlaywrightSupported()) 148if ((feature & TestFeature.DevCert) == TestFeature.DevCert && !IsDevCertSupported()) 152if ((feature & TestFeature.Docker) == TestFeature.Docker && !IsDockerSupported()) 156if ((feature & TestFeature.DockerPluginBuildx) == TestFeature.DockerPluginBuildx && !IsDockerPluginBuildxSupported())