当前位置: 首页>>代码示例>>C#>>正文


C# Table.AddRow方法代码示例

本文整理汇总了C#中TechTalk.SpecFlow.Table.AddRow方法的典型用法代码示例。如果您正苦于以下问题:C# Table.AddRow方法的具体用法?C# Table.AddRow怎么用?C# Table.AddRow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TechTalk.SpecFlow.Table的用法示例。


在下文中一共展示了Table.AddRow方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetTimeToWin

        public virtual void GetTimeToWin()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get Time To Win", new string[] {
                        "mytag"});
#line 7
this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "field",
                        "values"});
            table1.AddRow(new string[] {
                        "Cookies To Buy A Farm",
                        "500.0"});
            table1.AddRow(new string[] {
                        "Frequency",
                        "4.0"});
            table1.AddRow(new string[] {
                        "Cookies To Win",
                        "2000.0"});
#line 8
 testRunner.Given("I enter following values:", ((string)(null)), table1, "Given ");
#line 13
 testRunner.When("I start playing the game", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 14
 testRunner.Then("I want to see total time \'526.1904762\' seconds", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
开发者ID:ashinshana,项目名称:node-puzzle,代码行数:28,代码来源:CookieFarm.feature.cs

示例2: FullyArmed

        public virtual void FullyArmed()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Fully armed", ((string[])(null)));
#line 7
  this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Field",
                        "Value"});
            table1.AddRow(new string[] {
                        "BeltLevel",
                        "third"});
            table1.AddRow(new string[] {
                        "Katana",
                        "two"});
            table1.AddRow(new string[] {
                        "Sake",
                        "three"});
            table1.AddRow(new string[] {
                        "Fought",
                        "samurai"});
            table1.AddRow(new string[] {
                        "Magic",
                        "five"});
#line 8
 testRunner.Given("a ninja with the following parameterized experience", ((string)(null)), table1);
#line 16
 testRunner.When("attacked by a samurai");
#line 17
 testRunner.Then("the ninja should engage the opponent");
#line hidden
            testRunner.CollectScenarioErrors();
        }
开发者ID:Redabenmeradi,项目名称:cuke4ninja,代码行数:33,代码来源:ninja_survival_rate_with_parameters.feature.cs

示例3: DeadCellWith0NeighborsStaysDead

        public virtual void DeadCellWith0NeighborsStaysDead()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Dead cell with 0 neighbors stays dead", ((string[])(null)));
#line 6
  this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "*",
                        "*",
                        "*"});
            table1.AddRow(new string[] {
                        ".",
                        ".",
                        "."});
            table1.AddRow(new string[] {
                        ".",
                        ".",
                        "."});
            table1.AddRow(new string[] {
                        ".",
                        ".",
                        "."});
#line 7
    testRunner.Given("the following setup", ((string)(null)), table1);
#line 12
    testRunner.When("I evolve the board");
#line 13
    testRunner.Then("the center cell should be dead");
#line hidden
            testRunner.CollectScenarioErrors();
        }
开发者ID:BDDCloud,项目名称:Game-of-Life-at-Prairie-Dev-Con-2011-Code-Retreat,代码行数:31,代码来源:02+-+Dead+cell+evolves.feature.cs

示例4: AlienE_T_OchJawsIFilmsamlingen

        public virtual void AlienE_T_OchJawsIFilmsamlingen()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("\"Alien\", \"E.T.\" och \"Jaws\" i filmsamlingen", ((string[])(null)));
#line 7
this.ScenarioSetup(scenarioInfo);
#line 8
 testRunner.Given("att filmsamlingen innehåller \"Alien\", \"E.T.\", \"Jaws\"");
#line 9
 testRunner.When("jag anger kommando: ListaFilmer");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Rad"});
            table1.AddRow(new string[] {
                        "Alien"});
            table1.AddRow(new string[] {
                        "E.T."});
            table1.AddRow(new string[] {
                        "Jaws"});
            table1.AddRow(new string[] {
                        "Du har 3 filmer i samlingen"});
#line 10
 testRunner.Then("ska resultatet vara:", ((string)(null)), table1);
#line hidden
            testRunner.CollectScenarioErrors();
        }
开发者ID:marcusoftnet,项目名称:BDDWithSpecFlow,代码行数:25,代码来源:Lista_filmer.feature.cs

示例5: FeatureBackground

        public virtual void FeatureBackground()
        {
#line 7
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Author",
                        "Title",
                        "Price"});
            table1.AddRow(new string[] {
                        "Martin Fowler",
                        "Analysis Patterns",
                        "50.20"});
            table1.AddRow(new string[] {
                        "Eric Evans",
                        "Domain Driven Design",
                        "46.34"});
            table1.AddRow(new string[] {
                        "Ted Pattison",
                        "Inside Windows SharePoint Services",
                        "31.49"});
            table1.AddRow(new string[] {
                        "Gojko Adzic",
                        "Bridging the Communication Gap",
                        "24.75"});
#line 8
 testRunner.Given("the following books", ((string)(null)), table1, "Given ");
#line hidden
        }
开发者ID:GabyZu,项目名称:SpecFlow-Examples,代码行数:28,代码来源:US02_HomeScreen.feature.cs

示例6: SettingRelativePriority

        public virtual void SettingRelativePriority()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Setting relative priority", ((string[])(null)));
#line 6
this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Title"});
            table1.AddRow(new string[] {
                        "One"});
            table1.AddRow(new string[] {
                        "Two"});
            table1.AddRow(new string[] {
                        "Three"});
#line 7
 testRunner.Given("that the following tasks already exist and are loaded:", ((string)(null)), table1);
#line 12
 testRunner.When("I set task \"Three\" to be more important than task \"One\"");
#line hidden
            TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
                        "Title"});
            table2.AddRow(new string[] {
                        "Three"});
            table2.AddRow(new string[] {
                        "One"});
            table2.AddRow(new string[] {
                        "Two"});
#line 13
 testRunner.Then("the tasks should be in this order:", ((string)(null)), table2);
#line hidden
            testRunner.CollectScenarioErrors();
        }
开发者ID:ArildF,项目名称:PTB,代码行数:32,代码来源:Links.feature.cs

示例7: RootRequestShowsSetupForm

        public virtual void RootRequestShowsSetupForm()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Root request shows setup form", ((string[])(null)));
#line 6
this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "extension",
                        "names"});
            table1.AddRow(new string[] {
                        "Module",
                        @"Orchard.Setup, Orchard.Pages, Orchard.ContentPicker, Orchard.Blogs, Orchard.MediaLibrary, Orchard.Modules, Orchard.Packaging, Orchard.PublishLater, Orchard.Themes, Orchard.Scripting, Orchard.Widgets, Orchard.Users, Orchard.ContentTypes, Orchard.Roles, Orchard.Comments, Orchard.jQuery, Orchard.Tags, TinyMce, Orchard.Recipes, Orchard.Warmup, Orchard.Alias, Orchard.Forms, Orchard.Tokens, Orchard.Autoroute, Orchard.Projections, Orchard.Fields, Orchard.MediaProcessing, Orchard.OutputCache, Orchard.Taxonomies, Orchard.Workflows, Orchard.Scripting.CSharp"});
            table1.AddRow(new string[] {
                        "Core",
                        "Common, Containers, Dashboard, Feeds, Navigation, Contents, Scheduling, Settings," +
                            " Shapes, XmlRpc, Title, Reports"});
            table1.AddRow(new string[] {
                        "Theme",
                        "SafeMode"});
#line 7
    testRunner.Given("I have a clean site with", ((string)(null)), table1, "Given ");
#line 12
    testRunner.When("I go to \"/\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 13
    testRunner.Then("I should see \"Welcome to Orchard\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 14
        testRunner.And("I should see \"Finish Setup\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 15
        testRunner.And("the status should be 200 \"OK\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
            this.ScenarioCleanup();
        }
开发者ID:dioptre,项目名称:nkd,代码行数:32,代码来源:Setup.feature.cs

示例8: VerifyingTheNavigationInBe_InspiredPage

        public virtual void VerifyingTheNavigationInBe_InspiredPage()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Verifying the navigation in Be-inspired page", ((string[])(null)));
#line 10
this.ScenarioSetup(scenarioInfo);
#line 11
testRunner.Given("I am on the AK homepage", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 12
testRunner.When("I click on BeInspired tab on homepage", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Value"});
            table1.AddRow(new string[] {
                        "PLACES TO VISIT"});
            table1.AddRow(new string[] {
                        "THINGS TO SEE & DO"});
            table1.AddRow(new string[] {
                        "WHERE TO STAY"});
            table1.AddRow(new string[] {
                        "MY PINBOARD"});
#line 13
testRunner.Then("Be-inspired Navigation Links displayed:", ((string)(null)), table1, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
开发者ID:venkatakumar9,项目名称:AKEcommerceAutomationTesting,代码行数:25,代码来源:Beinspirerpage.feature.cs

示例9: FeatureBackground

        public virtual void FeatureBackground()
        {
#line 30
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "TrackingID",
                        "Status"});
            table1.AddRow(new string[] {
                        "{51EB626B-D5B4-4AE4-9FD5-3D0208E4E42A}",
                        "OK"});
            table1.AddRow(new string[] {
                        "{0B4E7851-5EC1-4821-A4D2-F58B1F69F60F}",
                        ""});
#line 31
testRunner.Given("tracking information of lot# 2003 has data as shown in the table", ((string)(null)), table1);
#line hidden
            TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
                        "TrackingID",
                        "Status"});
            table2.AddRow(new string[] {
                        "{8B6000E4-7522-4660-B840-DAA31E136C55}",
                        "OK"});
            table2.AddRow(new string[] {
                        "{24AB763D-0694-4304-ADBE-40067930B782}",
                        "OK"});
            table2.AddRow(new string[] {
                        "{181A88E1-30DA-4F64-8EC8-B9A325F18CEE}",
                        "OK"});
            table2.AddRow(new string[] {
                        "{4B103861-C7C8-4761-96F6-FB1EAC58CD69}",
                        "Timeout"});
#line 35
testRunner.And("tracking information of lot# 2004 has data as shown in the table", ((string)(null)), table2);
#line hidden
        }
开发者ID:tlaothong,项目名称:WorkHorse,代码行数:35,代码来源:EndToEnd.feature.cs

示例10: StandardGameWith2Robots

        public virtual void StandardGameWith2Robots()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Standard game with 2 robots", ((string[])(null)));
#line 3
this.ScenarioSetup(scenarioInfo);
#line 4
 testRunner.Given("that I have created a battle arena of size 5 5", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "InitialPosition",
                        "MoveInstructions"});
            table1.AddRow(new string[] {
                        "1 2 N",
                        "LMLMLMLMM"});
            table1.AddRow(new string[] {
                        "3 3 E",
                        "MMRMMRMRRM"});
#line 5
 testRunner.And("that I have deployed the following robots", ((string)(null)), table1, "And ");
#line 9
 testRunner.When("I play the game", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
            TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
                        "FinalPosition"});
            table2.AddRow(new string[] {
                        "1 3 N"});
            table2.AddRow(new string[] {
                        "5 1 E"});
#line 10
 testRunner.Then("the resulting positions of the robots should be", ((string)(null)), table2, "Then ");
#line hidden
            this.ScenarioCleanup();
        }
开发者ID:jeanml,项目名称:robot-wars,代码行数:33,代码来源:RobotWarsGame.feature.cs

示例11: LogsWriterShouldHaveNoLocks

        public virtual void LogsWriterShouldHaveNoLocks()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Logs writer should have no locks", new string[] {
                        "unit"});
#line 7
this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "User Id"});
            table1.AddRow(new string[] {
                        "[email protected]"});
            table1.AddRow(new string[] {
                        "[email protected]"});
            table1.AddRow(new string[] {
                        "[email protected]"});
            table1.AddRow(new string[] {
                        "[email protected]"});
            table1.AddRow(new string[] {
                        "[email protected]"});
#line 8
 testRunner.Given("I have \'5\' users that work with a system simulteneously", ((string)(null)), table1, "Given ");
#line 15
 testRunner.When("I add \'1000\' simulteneous logs into dynamo db", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 16
 testRunner.Then("the result should be \'1000\' logs in dynamo db", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
开发者ID:Naviam,项目名称:Shop-Any-Ware,代码行数:28,代码来源:NlogDynamoDbTarget.feature.cs

示例12: Tooltip1

        public virtual void Tooltip1()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Tooltip 1", ((string[])(null)));
#line 10
this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Property",
                        "Value"});
            table1.AddRow(new string[] {
                        "CreatedDate",
                        "26.01.2005 15:55"});
            table1.AddRow(new string[] {
                        "StartedDate",
                        "27.01.2006 8:32"});
            table1.AddRow(new string[] {
                        "StateChangedDate",
                        "27.01.2006 8:32"});
            table1.AddRow(new string[] {
                        "ModifiedDate",
                        "27.01.2006 19:23"});
#line 11
 testRunner.Given("a task with the following attributes:", ((string)(null)), table1);
#line hidden
#line 17
    testRunner.Then("the tooltip should show", "Created: 26.01.2005 15:55 \r\nLast modified: 27.01.2006 19:23\r\nStarted: 27.01.2006 " +
                    "08:32\r\nState last changed: 27.01.2006 08:32", ((TechTalk.SpecFlow.Table)(null)));
#line hidden
            testRunner.CollectScenarioErrors();
        }
开发者ID:ArildF,项目名称:PTB,代码行数:30,代码来源:TaskToolTip.feature.cs

示例13: ASimpleTableInTheGivenStatement

        public virtual void ASimpleTableInTheGivenStatement()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("a simple table in the given statement", ((string[])(null)));
#line 5
this.ScenarioSetup(scenarioInfo);
#line 6
 testRunner.Given("I am a table specification", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "answer",
                        "vote"});
            table1.AddRow(new string[] {
                        "Red",
                        "1"});
            table1.AddRow(new string[] {
                        "Cucumber green",
                        "1"});
            table1.AddRow(new string[] {
                        "blue",
                        "1"});
#line 7
 testRunner.And("I can see the table whats your favourite colour", ((string)(null)), table1, "And ");
#line 12
 testRunner.When("I attempt to up vote the answer, Cucumber green", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 13
 testRunner.Then("I should see the favourite colour is \'Cucumber green\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
开发者ID:MikeHanson,项目名称:SpecSalad,代码行数:29,代码来源:SpecificationsWithTables.feature.cs

示例14: LogCustomersRegistering

        public virtual void LogCustomersRegistering()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Log customers registering", ((string[])(null)));
#line 7
this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "Email",
                        "Name",
                        "Password"});
            table1.AddRow(new string[] {
                        "[email protected]",
                        "Scott",
                        "[email protected]"});
            table1.AddRow(new string[] {
                        "[email protected]",
                        "Jack",
                        "[email protected]"});
            table1.AddRow(new string[] {
                        "[email protected]",
                        "Mike",
                        "[email protected]"});
#line 8
 testRunner.Given("I have registered these people:", ((string)(null)), table1);
#line 13
 testRunner.When("I check the regisration logs");
#line 14
 testRunner.Then("I should find \"3\" \"Registration\" entries in the logs");
#line hidden
            testRunner.CollectScenarioErrors();
        }
开发者ID:elbandit,项目名称:DDD-CQRS-Blackjack,代码行数:31,代码来源:022-MemberRegistrationData.feature.cs

示例15: RetreiveCustomers

        public virtual void RetreiveCustomers()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Retreive Customers", new string[] {
                        "retrieve_entities"});
#line 7
this.ScenarioSetup(scenarioInfo);
#line hidden
            TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
                        "CustomerId",
                        "CustomerName"});
            table1.AddRow(new string[] {
                        "ABCD",
                        "Test Customer ABCD"});
            table1.AddRow(new string[] {
                        "EFGH",
                        "Test Customer EFGH"});
#line 8
 testRunner.Given("the following customers", ((string)(null)), table1, "Given ");
#line 12
 testRunner.When("I submit a GET request for customers", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 13
 testRunner.Then("the request should return the customers", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
开发者ID:stevedelong,项目名称:trackable-entities,代码行数:25,代码来源:RetreiveEntities.feature.cs


注:本文中的TechTalk.SpecFlow.Table.AddRow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。