The integration test for Component and Route property binding mistakenly had BeEmpty() instead of Be(). This incorrectly made the integration test pass since the Razor View was invalid. It was using the asp-for TagHelper attribute to attempt to render the values. However the Model's properties are of type string? which do not have an OOTB TagHelper for the h3 or p tags. With the view fixed this test now properly passes and behaves as expected.
Testing
[X] The Unit & Intergration tests are passing.
[X] I have added the necesary tests to cover my changes.
Description / Motivation
The integration test for Component and Route property binding mistakenly had
BeEmpty()
instead ofBe()
. This incorrectly made the integration test pass since the Razor View was invalid. It was using theasp-for
TagHelper attribute to attempt to render the values. However the Model's properties are of typestring?
which do not have an OOTB TagHelper for theh3
orp
tags. With the view fixed this test now properly passes and behaves as expected.Testing
Terms