Пример #1
0
 public void ShouldSetModel()
 {
     var result = new DialogResult("MyWindow", "Hello", new ViewEngineCollection());
     Assert.AreEqual("Hello", result.Options["Model"]);
 }
Пример #2
0
 public void ShouldSetViewTypeToDialog()
 {
     var result = new DialogResult("MyWindow", null, new ViewEngineCollection());
     Assert.AreEqual("Dialog", result.Options["ViewType"]);
 }