You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Gets (and renders) the HTML/component defined in the <Fixture><ComponentUnderTest>...<ComponentUnderTest/><Fixture/> element.
12
+
/// Gets (and renders) the markup/component defined in the <Fixture><ComponentUnderTest>...<ComponentUnderTest/><Fixture/> element.
13
13
///
14
14
/// The HTML/component is only rendered the first this method is called.
15
15
/// </summary>
@@ -27,7 +27,7 @@ public interface IRazorTestContext : ITestContext
thrownewInvalidOperationException($"The generic version of {sourceMethod} has previously returned an object of type IRenderedComponent<{other.Instance.GetType().Name}>. "+
103
+
$"That cannot be cast to an object of type IRenderedComponent<{typeof(TComponent).Name}>.");
104
+
}
105
+
106
+
if(targetisIRenderedFragment)
107
+
{
108
+
thrownewInvalidOperationException($"It is not possible to call the generic version of {sourceMethod} after "+
109
+
$"the non-generic version has been called on the same test context. Change all calls to the same generic version and try again.");
110
+
}
111
+
else
112
+
{
113
+
thrownewException($"This line should never have been reached. An unknown type was placed inside the {nameof(_renderedFragments)}.");
0 commit comments