TemplateControlCompilerTest.cs 893 B

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