Skip to content

Commit 1feead8

Browse files
committed
Readability tweak.
1 parent 7df9316 commit 1feead8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TestStack.FluentMvcTesting/ControllerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static TempDataResultTest ShouldHaveTempDataProperty(this ControllerBase
7777
throw new TempDataAssertionException(string.Format(
7878
"Expected value to be of type {0}, but instead was {1}.",
7979
value.GetType().FullName,
80-
controller.TempData[key].GetType().FullName));
80+
actual.GetType().FullName));
8181
}
8282

8383
if (value != null && !value.Equals(actual))

TestStack.FluentMvcTesting/TempDataResultTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void AndShouldHaveTempDataProperty(string key, object value = null)
2727
throw new TempDataAssertionException(string.Format(
2828
"Expected value to be of type {0}, but instead was {1}.",
2929
value.GetType().FullName,
30-
_controller.TempData[key].GetType().FullName));
30+
actual.GetType().FullName));
3131
}
3232

3333
if (value != null && !value.Equals(actual))

0 commit comments

Comments
 (0)