Chaning unit test to use Mock.Setup instead of setting it directly
This commit is contained in:
parent
93869a5d7b
commit
dbd26ef9a3
|
|
@ -35,10 +35,11 @@ namespace Microsoft.AspNet.Mvc.Core.Test.ActionResults
|
|||
// Arrange
|
||||
var expectedContentType = "text/plain";
|
||||
var input = "testInput";
|
||||
var stream = new MemoryStream();
|
||||
|
||||
var httpResponse = new Mock<HttpResponse>();
|
||||
httpResponse.SetupSet(r => r.ContentType = expectedContentType).Verifiable();
|
||||
httpResponse.Object.Body = new MemoryStream();
|
||||
httpResponse.SetupGet(r => r.Body).Returns(stream);
|
||||
|
||||
var actionContext = CreateMockActionContext(httpResponse.Object);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue