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
conststringpageName="pageName";_sut.GetByPageName(pageName).Should().BeViewResult().WithViewData("PageName",pageName).WithViewData("Roles",_roles)// this call fails!.WithViewData("FieldName",null);
causes:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=FluentAssertions.Mvc5
StackTrace:
at FluentAssertions.Mvc.ViewResultBaseAssertions`1.WithViewData(String key, Object expectedValue, String reason, Object[] reasonArgs)
at Tests.Controllers.HelpEditor.HelpEditorControllerTest.GetByPageName_Should_return_view_for_specified_pageName() in ...\....Tests\Controllers\HelpEditor\HelpEditorControllerTest.cs:line 48
The text was updated successfully, but these errors were encountered:
This code:
causes:
The text was updated successfully, but these errors were encountered: