mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
45 lines
960 B
C#
45 lines
960 B
C#
#if NET_2_0
|
|
|
|
using MonoTests.SystemWeb.Framework;
|
|
using NUnit.Framework;
|
|
using System.Web.UI.WebControls;
|
|
using System.Reflection;
|
|
using System.ComponentModel;
|
|
using System.Threading;
|
|
|
|
namespace MonoTests.System.Web.Compilation {
|
|
public class ReadOnlyPropertyControl:TextBox {
|
|
[Bindable (true)]
|
|
public bool MyProp
|
|
{
|
|
get { return true; }
|
|
}
|
|
|
|
}
|
|
|
|
[TestFixture]
|
|
public class TemplateControlCompilerTest
|
|
{
|
|
[Test]
|
|
[NUnit.Framework.Category ("NunitWeb")]
|
|
#if !TARGET_JVM
|
|
[NUnit.Framework.Category ("NotWorking")]
|
|
#endif
|
|
public void ReadOnlyPropertyBindTest ()
|
|
{
|
|
WebTest.CopyResource (GetType (), "ReadOnlyPropertyBind.aspx", "ReadOnlyPropertyBind.aspx");
|
|
WebTest.CopyResource (GetType (), "ReadOnlyPropertyControl.ascx", "ReadOnlyPropertyControl.ascx");
|
|
new WebTest ("ReadOnlyPropertyBind.aspx").Run ();
|
|
}
|
|
[TestFixtureTearDown]
|
|
public void TearDown ()
|
|
{
|
|
Thread.Sleep (100);
|
|
WebTest.Unload ();
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif
|
|
|