當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。