2018-11-08 20:11:30 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
2018-06-21 17:40:44 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
|
|
namespace EndToEnd
|
|
|
|
|
{
|
|
|
|
|
public class SupportedNetCoreAppVersions : IEnumerable<object[]>
|
|
|
|
|
{
|
2018-09-27 01:54:17 +00:00
|
|
|
|
public IEnumerator<object[]> GetEnumerator() => Versions.Select(version => new object[] { version }).GetEnumerator();
|
2018-06-21 17:40:44 +00:00
|
|
|
|
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
|
2018-09-27 01:54:17 +00:00
|
|
|
|
public static IEnumerable<string> Versions
|
2018-06-21 17:40:44 +00:00
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new[]
|
|
|
|
|
{
|
|
|
|
|
"1.0",
|
|
|
|
|
"1.1",
|
|
|
|
|
"2.0",
|
2018-08-04 03:02:55 +00:00
|
|
|
|
"2.1",
|
2019-03-01 18:55:27 +00:00
|
|
|
|
// https://github.com/dotnet/core-sdk/issues/780
|
|
|
|
|
// "2.2",
|
2018-09-10 04:56:57 +00:00
|
|
|
|
"3.0"
|
2018-09-27 01:54:17 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class SupportedAspNetCoreVersions : IEnumerable<object[]>
|
|
|
|
|
{
|
|
|
|
|
public IEnumerator<object[]> GetEnumerator() => Versions.Select(version => new object[] { version }).GetEnumerator();
|
|
|
|
|
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
|
|
|
|
|
|
|
|
|
|
public static IEnumerable<string> Versions
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return SupportedNetCoreAppVersions.Versions.Except(new List<string>() { "1.0", "1.1", "2.0" });
|
2018-06-21 17:40:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-11-08 20:11:30 +00:00
|
|
|
|
|
|
|
|
|
public class SupportedAspNetCoreAllVersions : IEnumerable<object[]>
|
|
|
|
|
{
|
|
|
|
|
public IEnumerator<object[]> GetEnumerator() => Versions.Select(version => new object[] { version }).GetEnumerator();
|
|
|
|
|
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
|
|
|
|
|
|
|
|
|
|
public static IEnumerable<string> Versions
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return SupportedAspNetCoreVersions.Versions.Where(v => new Version(v).Major < 3);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-06-21 17:40:44 +00:00
|
|
|
|
}
|