2
0

TemplateControlCompilerTest.cs 960 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #if !TARGET_JVM
  22. [NUnit.Framework.Category ("NotWorking")]
  23. #endif
  24. public void ReadOnlyPropertyBindTest ()
  25. {
  26. WebTest.CopyResource (GetType (), "ReadOnlyPropertyBind.aspx", "ReadOnlyPropertyBind.aspx");
  27. WebTest.CopyResource (GetType (), "ReadOnlyPropertyControl.ascx", "ReadOnlyPropertyControl.ascx");
  28. new WebTest ("ReadOnlyPropertyBind.aspx").Run ();
  29. }
  30. [TestFixtureTearDown]
  31. public void TearDown ()
  32. {
  33. Thread.Sleep (100);
  34. WebTest.Unload ();
  35. }
  36. }
  37. }
  38. #endif