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-06-18 23:26:57 +00:00
|
|
|
|
"2.2",
|
2019-09-20 23:19:37 +00:00
|
|
|
|
"3.0",
|
|
|
|
|
"3.1",
|
2019-09-17 20:09:37 +00:00
|
|
|
|
"5.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
|
|
|
|
}
|