3 using System
.Windows
.Browser
;
7 namespace MonoTests
.System
.Windows
10 public class WebApplicationTest
25 public event EventHandler MyEvent
;
32 public string MyMethod (int i
, string s
, double d
)
41 public string MyMethod (int i
, string s
, double d
)
50 public string MyMethod (int i
, string s
, double d
)
60 public decimal MyMethod (int i
)
70 public string MyMethod (Uri u
)
76 WebApplication app
= WebApplication
.Current
;
79 [ExpectedException (typeof (ArgumentNullException
))]
80 public void RegisterScriptableObjectNameNull ()
82 app
.RegisterScriptableObject (null, new Scriptable1 ());
86 [ExpectedException (typeof (ArgumentNullException
))]
87 public void RegisterScriptableObjectInstanceNull ()
89 app
.RegisterScriptableObject ("my", null);
93 [Category ("NotWorking")]
94 public void RegisterScriptableObject ()
96 app
.RegisterScriptableObject ("hoge", new Scriptable1 ());
97 app
.RegisterScriptableObject ("hoge2", new Scriptable2 ());
98 app
.RegisterScriptableObject ("hoge3", new Scriptable3 ());
100 app
.RegisterScriptableObject ("hoge4", new Scriptable4 ());
102 } catch (NotSupportedException
) {
105 app
.RegisterScriptableObject ("hoge5", new Scriptable5 ());
107 } catch (ArgumentException
) {
110 app
.RegisterScriptableObject ("hoge6", new Scriptable6 ());
112 } catch (NotSupportedException
) {
115 app
.RegisterScriptableObject ("hoge7", new Scriptable7 ());
117 } catch (NotSupportedException
) {