public void show_with_properties() { theLog.Report.AddProperty(ReflectionHelper.GetProperty<FakeModel>(x => x.Name), new ConversionPropertyBinder(new BindingRegistry())); theLog.Report.Used(new BindingValue{RawKey = "somethingelse", RawValue = "raw", Source = "the request"}); var tag = new ModelBindingLogEndpoint().VisualizePartial(theLog).As<CollapsibleTag>(); tag.ToString().ShouldContain("<tr><td>Name</td><td>ConversionPropertyBinder</td><td>'raw' from 'the request'/somethingelse</td></tr>"); }
public void just_show_the_selected_model_binder_if_no_properties() { var tag = new ModelBindingLogEndpoint().VisualizePartial(theLog).As<CollapsibleTag>(); tag.ToString().ShouldContain("Used Title of FakeModelBinder"); }