/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

  1. // ------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by SpecFlow (http://www.specflow.org/).
  4. // SpecFlow Version:1.5.0.0
  5. // Runtime Version:4.0.30319.235
  6. //
  7. // Changes to this file may cause incorrect behavior and will be lost if
  8. // the code is regenerated.
  9. // </auto-generated>
  10. // ------------------------------------------------------------------------------
  11. #region Designer generated code
  12. namespace Sketch.Test.Acceptance.Specs
  13. {
  14. using TechTalk.SpecFlow;
  15. [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.5.0.0")]
  16. [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  17. [Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()]
  18. public partial class EditingElementPropertiesFeature
  19. {
  20. private static TechTalk.SpecFlow.ITestRunner testRunner;
  21. #line 1 "PropertyEditing.feature"
  22. #line hidden
  23. [Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()]
  24. public static void FeatureSetup(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext)
  25. {
  26. testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
  27. TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Editing element properties", "", GenerationTargetLanguage.CSharp, ((string[])(null)));
  28. testRunner.OnFeatureStart(featureInfo);
  29. }
  30. [Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute()]
  31. public static void FeatureTearDown()
  32. {
  33. testRunner.OnFeatureEnd();
  34. testRunner = null;
  35. }
  36. public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
  37. {
  38. testRunner.OnScenarioStart(scenarioInfo);
  39. }
  40. [Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()]
  41. public virtual void ScenarioTearDown()
  42. {
  43. testRunner.OnScenarioEnd();
  44. }
  45. [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
  46. [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Checkbox: check the default value of checked property")]
  47. [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
  48. public virtual void CheckboxCheckTheDefaultValueOfCheckedProperty()
  49. {
  50. TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Checkbox: check the default value of checked property", ((string[])(null)));
  51. #line 3
  52. this.ScenarioSetup(scenarioInfo);
  53. #line 4
  54. testRunner.Given("I am on the sketch page");
  55. #line 5
  56. testRunner.When("I add the element of type \"common.checkbox\"");
  57. #line 6
  58. testRunner.And("I select the last added element");
  59. #line hidden
  60. TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
  61. "Element",
  62. "Properties"});
  63. table1.AddRow(new string[] {
  64. "Checkbox",
  65. "[ {name:\"checked\", value:true} ]"});
  66. #line 7
  67. testRunner.Then("I should get the following view content", ((string)(null)), table1);
  68. #line hidden
  69. testRunner.CollectScenarioErrors();
  70. }
  71. [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
  72. [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Checkbox: uncheck and verify the model")]
  73. [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
  74. public virtual void CheckboxUncheckAndVerifyTheModel()
  75. {
  76. TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Checkbox: uncheck and verify the model", ((string[])(null)));
  77. #line 11
  78. this.ScenarioSetup(scenarioInfo);
  79. #line 12
  80. testRunner.Given("I am on the sketch page");
  81. #line 13
  82. testRunner.When("I add the element of type \"common.checkbox\"");
  83. #line 14
  84. testRunner.And("I select the last added element");
  85. #line 15
  86. testRunner.And("I set property \"checked\" using checkbox to \"False\"");
  87. #line hidden
  88. TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
  89. "Element",
  90. "Properties"});
  91. table2.AddRow(new string[] {
  92. "Checkbox",
  93. "[ {name:\"checked\", value:false} ]"});
  94. #line 16
  95. testRunner.Then("I should get the following view content", ((string)(null)), table2);
  96. #line hidden
  97. testRunner.CollectScenarioErrors();
  98. }
  99. [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
  100. [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Checkbox: uncheck, undo and verify the model")]
  101. [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
  102. public virtual void CheckboxUncheckUndoAndVerifyTheModel()
  103. {
  104. TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Checkbox: uncheck, undo and verify the model", ((string[])(null)));
  105. #line 20
  106. this.ScenarioSetup(scenarioInfo);
  107. #line 21
  108. testRunner.Given("I am on the sketch page");
  109. #line 22
  110. testRunner.When("I add the element of type \"common.checkbox\"");
  111. #line 23
  112. testRunner.And("I select the last added element");
  113. #line 24
  114. testRunner.And("I set property \"checked\" using checkbox to \"False\"");
  115. #line 25
  116. testRunner.And("I undo the last action");
  117. #line hidden
  118. TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
  119. "Element",
  120. "Properties"});
  121. table3.AddRow(new string[] {
  122. "Checkbox",
  123. "[ {name:\"checked\", value:true} ]"});
  124. #line 26
  125. testRunner.Then("I should get the following view content", ((string)(null)), table3);
  126. #line hidden
  127. testRunner.CollectScenarioErrors();
  128. }
  129. [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
  130. [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Checkbox: uncheck, undo and verify the editor")]
  131. [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
  132. [Microsoft.VisualStudio.TestTools.UnitTesting.IgnoreAttribute()]
  133. public virtual void CheckboxUncheckUndoAndVerifyTheEditor()
  134. {
  135. TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Checkbox: uncheck, undo and verify the editor", new string[] {
  136. "ignore"});
  137. #line 31
  138. this.ScenarioSetup(scenarioInfo);
  139. #line 32
  140. testRunner.Given("I am on the sketch page");
  141. #line 33
  142. testRunner.When("I add the element of type \"common.checkbox\"");
  143. #line 34
  144. testRunner.And("I select the last added element");
  145. #line 35
  146. testRunner.And("I set property \"checked\" using checkbox to \"False\"");
  147. #line 36
  148. testRunner.And("I undo the last action");
  149. #line 37
  150. testRunner.Then("The value of the checkbox editor for property \"checked\" should be \"true\"");
  151. #line hidden
  152. testRunner.CollectScenarioErrors();
  153. }
  154. [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
  155. [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Font size: Set the value and verify the model")]
  156. [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
  157. public virtual void FontSizeSetTheValueAndVerifyTheModel()
  158. {
  159. TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Font size: Set the value and verify the model", ((string[])(null)));
  160. #line 39
  161. this.ScenarioSetup(scenarioInfo);
  162. #line 40
  163. testRunner.Given("I am on the sketch page");
  164. #line 41
  165. testRunner.When("I add the element of type \"common.text\"");
  166. #line 42
  167. testRunner.And("I select the last added element");
  168. #line 43
  169. testRunner.And("I set property \"font_size\" using dropdown to \"42\"");
  170. #line hidden
  171. TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
  172. "Element",
  173. "Properties"});
  174. table4.AddRow(new string[] {
  175. "Textarea",
  176. "[ {name:\"font.size\", value:\"42\"} ]"});
  177. #line 44
  178. testRunner.Then("I should get the following view content", ((string)(null)), table4);
  179. #line hidden
  180. testRunner.CollectScenarioErrors();
  181. }
  182. [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
  183. [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Font family: Set the value and verify the model")]
  184. [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
  185. public virtual void FontFamilySetTheValueAndVerifyTheModel()
  186. {
  187. TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Font family: Set the value and verify the model", ((string[])(null)));
  188. #line 48
  189. this.ScenarioSetup(scenarioInfo);
  190. #line 49
  191. testRunner.Given("I am on the sketch page");
  192. #line 50
  193. testRunner.When("I add the element of type \"common.text\"");
  194. #line 51
  195. testRunner.And("I select the last added element");
  196. #line 52
  197. testRunner.And("I set property \"font_family\" using dropdown to \"Arial\"");
  198. #line hidden
  199. TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
  200. "Element",
  201. "Properties"});
  202. table5.AddRow(new string[] {
  203. "Textarea",
  204. "[ {name:\"font.family\", value:\"Arial\"} ]"});
  205. #line 53
  206. testRunner.Then("I should get the following view content", ((string)(null)), table5);
  207. #line hidden
  208. testRunner.CollectScenarioErrors();
  209. }
  210. [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
  211. [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Font bold: Set the value and verify the model")]
  212. [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Editing element properties")]
  213. public virtual void FontBoldSetTheValueAndVerifyTheModel()
  214. {
  215. TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Font bold: Set the value and verify the model", ((string[])(null)));
  216. #line 57
  217. this.ScenarioSetup(scenarioInfo);
  218. #line 58
  219. testRunner.Given("I am on the sketch page");
  220. #line 59
  221. testRunner.When("I add the element of type \"common.text\"");
  222. #line 60
  223. testRunner.And("I select the last added element");
  224. #line 61
  225. testRunner.And("I set property \"font_bold\" by clicking on the button");
  226. #line hidden
  227. TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] {
  228. "Element",
  229. "Properties"});
  230. table6.AddRow(new string[] {
  231. "Textarea",
  232. "[ {name:\"font.bold\", value:true} ]"});
  233. #line 62
  234. testRunner.Then("I should get the following view content", ((string)(null)), table6);
  235. #line hidden
  236. testRunner.CollectScenarioErrors();
  237. }
  238. }
  239. }
  240. #endregion