New test.
[mono.git] / mcs / class / System.Web / Test / System.Web.Compilation / TemplateControlCompilerTest.cs
1 #if NET_2_0
2
3 using MonoTests.SystemWeb.Framework;
4 using NUnit.Framework;
5 using System.Web.UI.WebControls;
6 using System.Reflection;
7 using System.ComponentModel;
8 using System.Threading;
9
10 namespace MonoTests.System.Web.Compilation {
11         public class ReadOnlyPropertyControl:TextBox {
12                 [Bindable (true)]
13                 public bool MyProp
14                 {
15                         get { return true; }
16                 }
17
18         }
19         
20         [TestFixture]
21         public class TemplateControlCompilerTest
22         {
23                 [Test]
24                 [NUnit.Framework.Category ("NunitWeb")]
25                 public void ReadOnlyPropertyBindTest ()
26                 {
27                         WebTest.CopyResource (GetType (), "ReadOnlyPropertyBind.aspx", "ReadOnlyPropertyBind.aspx");
28                         WebTest.CopyResource (GetType (), "ReadOnlyPropertyControl.ascx", "ReadOnlyPropertyControl.ascx");
29                         new WebTest ("ReadOnlyPropertyBind.aspx").Run ();
30                 }
31                 [TestFixtureTearDown]
32                 public void TearDown ()
33                 {
34                         Thread.Sleep (100);
35                         WebTest.Unload ();
36                 }
37         }
38 }
39
40 #endif
41