Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit ceaf257

Browse files
committed
Update Razor to use official xunit runner
1 parent 67e8e8b commit ceaf257

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

test/Microsoft.AspNet.Razor.Runtime.Test/project.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
"dependencies": {
44
"Microsoft.AspNet.Razor.Runtime": "4.0.0-*",
55
"Microsoft.AspNet.Testing": "1.0.0-*",
6-
"Xunit.KRunner": "1.0.0-*"
6+
"xunit.runner.kre": "1.0.0-*"
77
},
88
"commands": {
9-
"test": "Xunit.KRunner"
9+
"test": "xunit.runner.kre"
1010
},
1111
"frameworks": {
1212
"aspnet50": { },
1313
"aspnetcore50": {
1414
"dependencies": {
15+
"System.Reflection.TypeExtensions": "4.0.0-beta-*",
1516
"System.Runtime.Extensions": "4.0.10-beta-*"
1617
}
1718
}

test/Microsoft.AspNet.Razor.Test/TagHelpers/AddOrRemoveTagHelperSpanVisitorTest.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,10 @@ public void GetDescriptors_RemoveTagHelperNotInDocument_DoesNotThrow()
168168
new ParserErrorSink());
169169
var document = new MarkupBlock(Factory.Markup("Hello World"));
170170

171-
// Act & Assert
172-
Assert.DoesNotThrow(() => addOrRemoveTagHelperSpanVisitor.GetDescriptors(document));
171+
// Act
172+
var descriptors = addOrRemoveTagHelperSpanVisitor.GetDescriptors(document);
173+
174+
Assert.Empty(descriptors);
173175
}
174176

175177
private class TestTagHelperDescriptorResolver : ITagHelperDescriptorResolver

test/Microsoft.AspNet.Razor.Test/project.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
"Moq": "4.2.1312.1622",
66
"Microsoft.AspNet.Razor": "4.0.0-*",
77
"Microsoft.AspNet.Testing": "1.0.0-*",
8-
"Xunit.KRunner": "1.0.0-*"
8+
"xunit.runner.kre": "1.0.0-*"
99
},
1010
"commands": {
11-
"test": "Xunit.KRunner"
11+
"test": "xunit.runner.kre"
1212
},
1313
"frameworks": {
1414
"aspnet50": { },
1515
"aspnetcore50": {
1616
"dependencies": {
17-
"System.Diagnostics.TraceSource": "4.0.0-beta-*"
17+
"System.Diagnostics.TraceSource": "4.0.0-beta-*",
18+
"System.Reflection.TypeExtensions": "4.0.0-beta-*"
1819
}
1920
}
2021
}

0 commit comments

Comments
 (0)