public void CanRenderNoticeThatHasOnlyTitle() { var data = new ViewDataDictionary(); data.NotifySuccess("test"); var html = data.NoticeSuccess().ToString(); html.Should().Contain("class=\"{0}\"".AsFormat( HtmlNotice.DefaultNotificationFormat.AsFormat("success"))); html.Should().Contain("<span>test</span>"); }