public void PartialWithModel_InvokesAndRendersPartialAsyncOnHtmlHelperOfT() { // Arrange var model = new TestModel(); var helper = DefaultTemplatesUtilities.GetHtmlHelper(); var expected = DefaultTemplatesUtilities.FormatOutput(helper, model); // Act var actual = helper.Partial("some-partial", model); // Assert Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(actual)); }