// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Runtime.InteropServices; using Microsoft.AspNetCore.Server.IntegrationTesting; using Xunit; namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation { public static class RuntimeFlavors { public static IEnumerable SupportedFlavors { get { yield return RuntimeFlavor.CoreClr; // Can't run on CLR until https://github.com/dotnet/corefx/issues/20364 is resolved. //if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) //{ // yield return RuntimeFlavor.Clr; //} } } public static TheoryData SupportedFlavorsTheoryData { get { var theory = new TheoryData(); foreach (var item in SupportedFlavors) { theory.Add(item); } return theory; } } } }