зеркало из https://github.com/dotnet/razor.git
Fix build
This commit is contained in:
Родитель
d56e20dd77
Коммит
a20ca3e6d2
|
@ -223,7 +223,7 @@ public class ExtractToCodeBehindCodeActionProviderTest(ITestOutputHelper testOut
|
|||
var codeAction = Assert.Single(commandOrCodeActionContainer);
|
||||
var razorCodeActionResolutionParams = ((JsonElement)codeAction.Data!).Deserialize<RazorCodeActionResolutionParams>();
|
||||
Assert.NotNull(razorCodeActionResolutionParams);
|
||||
var actionParams = ((JsonElement)razorCodeActionResolutionParams.Data).Deserialize<ExtractToCodeBehindCodeActionParams>();
|
||||
var actionParams = ((JsonElement)razorCodeActionResolutionParams.Data!).Deserialize<ExtractToCodeBehindCodeActionParams>();
|
||||
Assert.NotNull(actionParams);
|
||||
|
||||
Assert.Equal(removeSpan, TextSpan.FromBounds(actionParams.RemoveStart, actionParams.RemoveEnd));
|
||||
|
@ -266,7 +266,7 @@ public class ExtractToCodeBehindCodeActionProviderTest(ITestOutputHelper testOut
|
|||
var codeAction = Assert.Single(commandOrCodeActionContainer);
|
||||
var razorCodeActionResolutionParams = ((JsonElement)codeAction.Data!).Deserialize<RazorCodeActionResolutionParams>();
|
||||
Assert.NotNull(razorCodeActionResolutionParams);
|
||||
var actionParams = ((JsonElement)razorCodeActionResolutionParams.Data).Deserialize<ExtractToCodeBehindCodeActionParams>();
|
||||
var actionParams = ((JsonElement)razorCodeActionResolutionParams.Data!).Deserialize<ExtractToCodeBehindCodeActionParams>();
|
||||
Assert.NotNull(actionParams);
|
||||
|
||||
Assert.Equal(removeSpan, TextSpan.FromBounds(actionParams.RemoveStart, actionParams.RemoveEnd));
|
||||
|
@ -339,7 +339,7 @@ public class ExtractToCodeBehindCodeActionProviderTest(ITestOutputHelper testOut
|
|||
var codeAction = Assert.Single(commandOrCodeActionContainer);
|
||||
var razorCodeActionResolutionParams = ((JsonElement)codeAction.Data!).Deserialize<RazorCodeActionResolutionParams>();
|
||||
Assert.NotNull(razorCodeActionResolutionParams);
|
||||
var actionParams = ((JsonElement)razorCodeActionResolutionParams.Data).Deserialize<ExtractToCodeBehindCodeActionParams>();
|
||||
var actionParams = ((JsonElement)razorCodeActionResolutionParams.Data!).Deserialize<ExtractToCodeBehindCodeActionParams>();
|
||||
Assert.NotNull(actionParams);
|
||||
|
||||
Assert.Equal(removeSpan, TextSpan.FromBounds(actionParams.RemoveStart, actionParams.RemoveEnd));
|
||||
|
|
|
@ -490,7 +490,7 @@ public class ExtractToComponentCodeActionProviderTest(ITestOutputHelper testOutp
|
|||
var codeAction = Assert.Single(commandOrCodeActionContainer);
|
||||
var razorCodeActionResolutionParams = ((JsonElement)codeAction.Data!).Deserialize<RazorCodeActionResolutionParams>();
|
||||
Assert.NotNull(razorCodeActionResolutionParams);
|
||||
var actionParams = ((JsonElement)razorCodeActionResolutionParams.Data).Deserialize<ExtractToComponentCodeActionParams>();
|
||||
var actionParams = ((JsonElement)razorCodeActionResolutionParams.Data!).Deserialize<ExtractToComponentCodeActionParams>();
|
||||
Assert.NotNull(actionParams);
|
||||
Assert.Equal(resultSpan.Start, actionParams.Start);
|
||||
Assert.Equal(resultSpan.End, actionParams.End);
|
||||
|
|
Загрузка…
Ссылка в новой задаче