/Sketch.Test.Acceptance/Specs/PropertyEditing.feature.cs
http://195be0225cfa.codeplex.com · C# · 255 lines · 230 code · 15 blank · 10 comment · 0 complexity · 57c64e67cf4812fb1191aa0d7b9827c1 MD5 · raw file
- // ------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by SpecFlow (http://www.specflow.org/).
- // SpecFlow Version:1.5.0.0
- // Runtime Version:4.0.30319.235
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- // ------------------------------------------------------------------------------
- #region Designer generated code
- namespace Sketch.Test.Acceptance.Specs
- {
- using TechTalk.SpecFlow;
-
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.5.0.0")]
- [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()]
- public partial class EditingElementPropertiesFeature
- {
-
- private static TechTalk.SpecFlow.ITestRunner testRunner;
-
- #line 1 "PropertyEditing.feature"
- #line hidden
-
- [Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()]
- public static void FeatureSetup(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext)
- {
- testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
- TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Editing element properties", "", GenerationTargetLanguage.CSharp, ((string[])(null)));
- testRunner.OnFeatureStart(featureInfo);
- }
-
- [Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute()]
- public static void FeatureTearDown()
- {
- testRunner.OnFeatureEnd();
- testRunner = null;
- }
-
- public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
- {
- testRunner.OnScenarioStart(scenarioInfo);
- }
-
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()]
- public virtual void ScenarioTearDown()
- {
- testRunner.OnScenarioEnd();
- }
-
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
- [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Checkbox: check the default value of checked property")]
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
- public virtual void CheckboxCheckTheDefaultValueOfCheckedProperty()
- {
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Checkbox: check the default value of checked property", ((string[])(null)));
- #line 3
- this.ScenarioSetup(scenarioInfo);
- #line 4
- testRunner.Given("I am on the sketch page");
- #line 5
- testRunner.When("I add the element of type \"common.checkbox\"");
- #line 6
- testRunner.And("I select the last added element");
- #line hidden
- TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
- "Element",
- "Properties"});
- table1.AddRow(new string[] {
- "Checkbox",
- "[ {name:\"checked\", value:true} ]"});
- #line 7
- testRunner.Then("I should get the following view content", ((string)(null)), table1);
- #line hidden
- testRunner.CollectScenarioErrors();
- }
-
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
- [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Checkbox: uncheck and verify the model")]
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
- public virtual void CheckboxUncheckAndVerifyTheModel()
- {
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Checkbox: uncheck and verify the model", ((string[])(null)));
- #line 11
- this.ScenarioSetup(scenarioInfo);
- #line 12
- testRunner.Given("I am on the sketch page");
- #line 13
- testRunner.When("I add the element of type \"common.checkbox\"");
- #line 14
- testRunner.And("I select the last added element");
- #line 15
- testRunner.And("I set property \"checked\" using checkbox to \"False\"");
- #line hidden
- TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
- "Element",
- "Properties"});
- table2.AddRow(new string[] {
- "Checkbox",
- "[ {name:\"checked\", value:false} ]"});
- #line 16
- testRunner.Then("I should get the following view content", ((string)(null)), table2);
- #line hidden
- testRunner.CollectScenarioErrors();
- }
-
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
- [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Checkbox: uncheck, undo and verify the model")]
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
- public virtual void CheckboxUncheckUndoAndVerifyTheModel()
- {
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Checkbox: uncheck, undo and verify the model", ((string[])(null)));
- #line 20
- this.ScenarioSetup(scenarioInfo);
- #line 21
- testRunner.Given("I am on the sketch page");
- #line 22
- testRunner.When("I add the element of type \"common.checkbox\"");
- #line 23
- testRunner.And("I select the last added element");
- #line 24
- testRunner.And("I set property \"checked\" using checkbox to \"False\"");
- #line 25
- testRunner.And("I undo the last action");
- #line hidden
- TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
- "Element",
- "Properties"});
- table3.AddRow(new string[] {
- "Checkbox",
- "[ {name:\"checked\", value:true} ]"});
- #line 26
- testRunner.Then("I should get the following view content", ((string)(null)), table3);
- #line hidden
- testRunner.CollectScenarioErrors();
- }
-
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
- [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Checkbox: uncheck, undo and verify the editor")]
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
- [Microsoft.VisualStudio.TestTools.UnitTesting.IgnoreAttribute()]
- public virtual void CheckboxUncheckUndoAndVerifyTheEditor()
- {
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Checkbox: uncheck, undo and verify the editor", new string[] {
- "ignore"});
- #line 31
- this.ScenarioSetup(scenarioInfo);
- #line 32
- testRunner.Given("I am on the sketch page");
- #line 33
- testRunner.When("I add the element of type \"common.checkbox\"");
- #line 34
- testRunner.And("I select the last added element");
- #line 35
- testRunner.And("I set property \"checked\" using checkbox to \"False\"");
- #line 36
- testRunner.And("I undo the last action");
- #line 37
- testRunner.Then("The value of the checkbox editor for property \"checked\" should be \"true\"");
- #line hidden
- testRunner.CollectScenarioErrors();
- }
-
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
- [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Font size: Set the value and verify the model")]
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
- public virtual void FontSizeSetTheValueAndVerifyTheModel()
- {
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Font size: Set the value and verify the model", ((string[])(null)));
- #line 39
- this.ScenarioSetup(scenarioInfo);
- #line 40
- testRunner.Given("I am on the sketch page");
- #line 41
- testRunner.When("I add the element of type \"common.text\"");
- #line 42
- testRunner.And("I select the last added element");
- #line 43
- testRunner.And("I set property \"font_size\" using dropdown to \"42\"");
- #line hidden
- TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
- "Element",
- "Properties"});
- table4.AddRow(new string[] {
- "Textarea",
- "[ {name:\"font.size\", value:\"42\"} ]"});
- #line 44
- testRunner.Then("I should get the following view content", ((string)(null)), table4);
- #line hidden
- testRunner.CollectScenarioErrors();
- }
-
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
- [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Font family: Set the value and verify the model")]
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
- public virtual void FontFamilySetTheValueAndVerifyTheModel()
- {
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Font family: Set the value and verify the model", ((string[])(null)));
- #line 48
- this.ScenarioSetup(scenarioInfo);
- #line 49
- testRunner.Given("I am on the sketch page");
- #line 50
- testRunner.When("I add the element of type \"common.text\"");
- #line 51
- testRunner.And("I select the last added element");
- #line 52
- testRunner.And("I set property \"font_family\" using dropdown to \"Arial\"");
- #line hidden
- TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
- "Element",
- "Properties"});
- table5.AddRow(new string[] {
- "Textarea",
- "[ {name:\"font.family\", value:\"Arial\"} ]"});
- #line 53
- testRunner.Then("I should get the following view content", ((string)(null)), table5);
- #line hidden
- testRunner.CollectScenarioErrors();
- }
-
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
- [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Font bold: Set the value and verify the model")]
- [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
- public virtual void FontBoldSetTheValueAndVerifyTheModel()
- {
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Font bold: Set the value and verify the model", ((string[])(null)));
- #line 57
- this.ScenarioSetup(scenarioInfo);
- #line 58
- testRunner.Given("I am on the sketch page");
- #line 59
- testRunner.When("I add the element of type \"common.text\"");
- #line 60
- testRunner.And("I select the last added element");
- #line 61
- testRunner.And("I set property \"font_bold\" by clicking on the button");
- #line hidden
- TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] {
- "Element",
- "Properties"});
- table6.AddRow(new string[] {
- "Textarea",
- "[ {name:\"font.bold\", value:true} ]"});
- #line 62
- testRunner.Then("I should get the following view content", ((string)(null)), table6);
- #line hidden
- testRunner.CollectScenarioErrors();
- }
- }
- }
- #endregion