Esempio n. 1
0
        protected override void SetUp()
        {
            base.SetUp();

            name     = new TextBoxTester("name", CurrentWebForm);
            comments = new TextBoxTester("comments", CurrentWebForm);
            save     = new ButtonTester("save", CurrentWebForm);
            book     = new DataGridTester("book", CurrentWebForm);

            // we use GuestBook.Web as a test target web
            host = AspFixtureHost.CreateInstance("/testweb", "../../../../src/GuestBook.Web", this);
            // note new pseudo-protocol "asptest" here and that virtual paths are *always* app-relative:
            //Browser.GetPage("http://localhost/NUnitAsp/sample/tutorial/GuestBook/GuestBook.aspx");
            Browser.GetPage("asptest://./GuestBook.aspx");
        }
Esempio n. 2
0
 public virtual void TestFixtureTearDown()
 {
     host = AspFixtureHost.ReleaseInstance(host);
 }
Esempio n. 3
0
 public virtual void TestFixtureSetup()
 {
     host = AspFixtureHost.CreateInstance(virtualPath, relativePhysicalPath, this);
 }
Esempio n. 4
0
 public void TestFixtureSetUp()
 {
     host = AspFixtureHost.CreateInstance("/", "/Data/Spring/Conversation/WebConversationStateTest", this);
 }
Esempio n. 5
0
 protected override void TearDown()
 {
     AspFixtureHost.ReleaseInstance(host); host = null;
     base.TearDown();
 }
 private AspFixtureRequest(AspFixtureHost host, Uri uri) : base(uri)
 {
     _host = host;
 }
 public void TestFixtureSetUp()
 {
     host = AspFixtureHost.CreateInstance("/", "/TestData/Test1", this);
 }