mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
240 lines
9.0 KiB
C#
240 lines
9.0 KiB
C#
// ------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by SpecFlow (http://www.specflow.org/).
|
|
// SpecFlow Version:1.4.0.0
|
|
// Runtime Version:4.0.30319.1
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
// ------------------------------------------------------------------------------
|
|
#region Designer generated code
|
|
namespace Orchard.Specs
|
|
{
|
|
using TechTalk.SpecFlow;
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.4.0.0")]
|
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
[NUnit.Framework.TestFixtureAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("Web Hosting")]
|
|
public partial class WebHostingFeature
|
|
{
|
|
|
|
private static TechTalk.SpecFlow.ITestRunner testRunner;
|
|
|
|
#line 1 "WebHosting.feature"
|
|
#line hidden
|
|
|
|
[NUnit.Framework.TestFixtureSetUpAttribute()]
|
|
public virtual void FeatureSetup()
|
|
{
|
|
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
|
|
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Web Hosting", "In order to test orchard\r\nAs an integration runner\r\nI want to verify basic hostin" +
|
|
"g is working", GenerationTargetLanguage.CSharp, ((string[])(null)));
|
|
testRunner.OnFeatureStart(featureInfo);
|
|
}
|
|
|
|
[NUnit.Framework.TestFixtureTearDownAttribute()]
|
|
public virtual void FeatureTearDown()
|
|
{
|
|
testRunner.OnFeatureEnd();
|
|
testRunner = null;
|
|
}
|
|
|
|
public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
|
|
{
|
|
testRunner.OnScenarioStart(scenarioInfo);
|
|
}
|
|
|
|
[NUnit.Framework.TearDownAttribute()]
|
|
public virtual void ScenarioTearDown()
|
|
{
|
|
testRunner.OnScenarioEnd();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("Returning static files")]
|
|
public virtual void ReturningStaticFiles()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Returning static files", ((string[])(null)));
|
|
#line 6
|
|
this.ScenarioSetup(scenarioInfo);
|
|
#line 7
|
|
testRunner.Given("I have a clean site based on Simple.Web");
|
|
#line 8
|
|
testRunner.When("I go to \"Content/Static.txt\"");
|
|
#line 9
|
|
testRunner.Then("I should see \"Hello world!\"");
|
|
#line 10
|
|
testRunner.And("the status should be 200 \"OK\"");
|
|
#line hidden
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("Returning web forms page")]
|
|
public virtual void ReturningWebFormsPage()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Returning web forms page", ((string[])(null)));
|
|
#line 12
|
|
this.ScenarioSetup(scenarioInfo);
|
|
#line 13
|
|
testRunner.Given("I have a clean site based on Simple.Web");
|
|
#line 14
|
|
testRunner.When("I go to \"Simple/Page.aspx\"");
|
|
#line 15
|
|
testRunner.Then("I should see \"Hello again\"");
|
|
#line 16
|
|
testRunner.And("the status should be 200 \"OK\"");
|
|
#line hidden
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("Returning a routed request")]
|
|
public virtual void ReturningARoutedRequest()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Returning a routed request", ((string[])(null)));
|
|
#line 18
|
|
this.ScenarioSetup(scenarioInfo);
|
|
#line 19
|
|
testRunner.Given("I have a clean site based on Simple.Web");
|
|
#line 20
|
|
testRunner.When("I go to \"hello-world\"");
|
|
#line 21
|
|
testRunner.Then("the status should be 200 \"OK\"");
|
|
#line 22
|
|
testRunner.And("I should see \"Hello yet again\"");
|
|
#line hidden
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("Following a link")]
|
|
public virtual void FollowingALink()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Following a link", ((string[])(null)));
|
|
#line 24
|
|
this.ScenarioSetup(scenarioInfo);
|
|
#line 25
|
|
testRunner.Given("I have a clean site based on Simple.Web");
|
|
#line 26
|
|
testRunner.When("I go to \"/simple/page.aspx\"");
|
|
#line 27
|
|
testRunner.And("I follow \"next page\"");
|
|
#line 28
|
|
testRunner.Then("the status should be 200 \"OK\"");
|
|
#line 29
|
|
testRunner.And("I should see \"Hello yet again\"");
|
|
#line hidden
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("Submitting a form with input, default, and hidden fields")]
|
|
public virtual void SubmittingAFormWithInputDefaultAndHiddenFields()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Submitting a form with input, default, and hidden fields", ((string[])(null)));
|
|
#line 31
|
|
this.ScenarioSetup(scenarioInfo);
|
|
#line 32
|
|
testRunner.Given("I have a clean site based on Simple.Web");
|
|
#line 33
|
|
testRunner.And("I am on \"/simple/page.aspx\"");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"name",
|
|
"value"});
|
|
table1.AddRow(new string[] {
|
|
"input1",
|
|
"gamma"});
|
|
#line 34
|
|
testRunner.When("I fill in", ((string)(null)), table1);
|
|
#line 37
|
|
testRunner.And("I hit \"Go!\"");
|
|
#line 38
|
|
testRunner.Then("I should see \"passthrough1:alpha\"");
|
|
#line 39
|
|
testRunner.And("I should see \"passthrough2:beta\"");
|
|
#line 40
|
|
testRunner.And("I should see \"input1:gamma\"");
|
|
#line hidden
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("Cookies follow along your request")]
|
|
public virtual void CookiesFollowAlongYourRequest()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Cookies follow along your request", ((string[])(null)));
|
|
#line 42
|
|
this.ScenarioSetup(scenarioInfo);
|
|
#line 43
|
|
testRunner.Given("I have a clean site based on Simple.Web");
|
|
#line 44
|
|
testRunner.When("I go to \"/simple/cookie-set.aspx\"");
|
|
#line 45
|
|
testRunner.And("I go to \"/simple/cookie-show.aspx\"");
|
|
#line 46
|
|
testRunner.Then("I should see \"foo:bar\"");
|
|
#line hidden
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("Being redirected")]
|
|
public virtual void BeingRedirected()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Being redirected", ((string[])(null)));
|
|
#line 48
|
|
this.ScenarioSetup(scenarioInfo);
|
|
#line 49
|
|
testRunner.Given("I have a clean site based on Simple.Web");
|
|
#line 50
|
|
testRunner.When("I go to \"/simple/redir.aspx\"");
|
|
#line 51
|
|
testRunner.And("I am redirected");
|
|
#line 52
|
|
testRunner.Then("I should see \"Hello again\"");
|
|
#line hidden
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("Not found modules file")]
|
|
public virtual void NotFoundModulesFile()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Not found modules file", ((string[])(null)));
|
|
#line 54
|
|
this.ScenarioSetup(scenarioInfo);
|
|
#line 55
|
|
testRunner.Given("I have a clean site based on Simple.Web");
|
|
#line 56
|
|
testRunner.When("I go to \"/Modules/Orchard.Blogs/module.txt\"");
|
|
#line 57
|
|
testRunner.Then("the status should be 404 \"Not Found\"");
|
|
#line hidden
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("Not found themes file")]
|
|
public virtual void NotFoundThemesFile()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Not found themes file", ((string[])(null)));
|
|
#line 59
|
|
this.ScenarioSetup(scenarioInfo);
|
|
#line 60
|
|
testRunner.Given("I have a clean site based on Simple.Web");
|
|
#line 61
|
|
testRunner.When("I go to \"/Themes/Classic/theme.txt\"");
|
|
#line 62
|
|
testRunner.Then("the status should be 404 \"Not Found\"");
|
|
#line hidden
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
}
|
|
}
|
|
#endregion
|