Switch to new xunit

This commit is contained in:
Hao Kung 2014-12-15 14:23:04 -08:00
parent 350902db07
commit f69f46c330
5 changed files with 10 additions and 10 deletions

View File

@ -11,7 +11,7 @@
"EntityFramework.InMemory": "7.0.0-*",
"Microsoft.Framework.OptionsModel" : "1.0.0-*",
"System.Security.Claims": "1.0.0-*",
"Xunit.KRunner": "1.0.0-*"
"xunit.runner.kre": "1.0.0-*"
},
"code": "**\\*.cs;..\\Shared\\*.cs",
"frameworks": {
@ -22,6 +22,6 @@
}
},
"commands": {
"test": "Xunit.KRunner"
"test": "xunit.runner.kre"
}
}

View File

@ -12,7 +12,7 @@
"EntityFramework.SqlServer": "7.0.0-*",
"Microsoft.Framework.OptionsModel" : "1.0.0-*",
"System.Security.Claims": "1.0.0-*",
"Xunit.KRunner": "1.0.0-*"
"xunit.runner.kre": "1.0.0-*"
},
"code": "**\\*.cs;..\\Shared\\*.cs",
"frameworks": {
@ -23,6 +23,6 @@
}
},
"commands": {
"test": "Xunit.KRunner"
"test": "xunit.runner.kre"
}
}

View File

@ -11,7 +11,7 @@
"Microsoft.Framework.ConfigurationModel": "1.0.0-*",
"Microsoft.Framework.DependencyInjection" : "1.0.0-*",
"Microsoft.Framework.OptionsModel" : "1.0.0-*",
"Xunit.KRunner": "1.0.0-*"
"xunit.runner.kre": "1.0.0-*"
},
"code": "**\\*.cs;..\\Shared\\*.cs",
"frameworks": {
@ -22,6 +22,6 @@
}
},
"commands": {
"test": "Xunit.KRunner"
"test": "xunit.runner.kre"
}
}

View File

@ -9,7 +9,7 @@
"Microsoft.Framework.ConfigurationModel" : "1.0.0-*",
"Microsoft.Framework.DependencyInjection" : "1.0.0-*",
"Microsoft.Framework.OptionsModel" : "1.0.0-*",
"Xunit.KRunner": "1.0.0-*"
"xunit.runner.kre": "1.0.0-*"
},
"code": "**\\*.cs;..\\Shared\\*.cs",
"frameworks": {
@ -20,6 +20,6 @@
}
},
"commands": {
"test": "Xunit.KRunner"
"test": "xunit.runner.kre"
}
}

View File

@ -30,7 +30,7 @@ namespace Microsoft.AspNet.Identity.Test
{
int priority = 0;
foreach (IAttributeInfo attr in testCase.Method.GetCustomAttributes((typeof(TestPriorityAttribute))))
foreach (IAttributeInfo attr in testCase.TestMethod.Method.GetCustomAttributes((typeof(TestPriorityAttribute))))
priority = attr.GetNamedArgument<int>("Priority");
GetOrCreate(sortedMethods, priority).Add(testCase);
@ -38,7 +38,7 @@ namespace Microsoft.AspNet.Identity.Test
foreach (var list in sortedMethods.Keys.Select(priority => sortedMethods[priority]))
{
list.Sort((x, y) => StringComparer.OrdinalIgnoreCase.Compare(x.Method.Name, y.Method.Name));
list.Sort((x, y) => StringComparer.OrdinalIgnoreCase.Compare(x.TestMethod.Method.Name, y.TestMethod.Method.Name));
foreach (XunitTestCase testCase in list)
yield return testCase;
}