Refactor / fix implicit version tests
This commit is contained in:
parent
158fbdbbad
commit
cc5a67d2e5
7 changed files with 174 additions and 1048 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
@ -19,6 +20,8 @@ namespace EndToEnd
|
|||
"1.1",
|
||||
"2.0",
|
||||
"2.1",
|
||||
// 2.2 currently disabled in master: https://github.com/dotnet/cli/issues/10125
|
||||
// "2.2",
|
||||
"3.0"
|
||||
};
|
||||
}
|
||||
|
@ -40,4 +43,18 @@ namespace EndToEnd
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue