public void ShouldSetModel() { var result = new DialogResult("MyWindow", "Hello", new ViewEngineCollection()); Assert.AreEqual("Hello", result.Options["Model"]); }
public void ShouldSetViewTypeToDialog() { var result = new DialogResult("MyWindow", null, new ViewEngineCollection()); Assert.AreEqual("Dialog", result.Options["ViewType"]); }