怎么写RCP UI 的测试用例
1个回答
展开全部
[Test]
public void TestNYStyleCheesePizza()
{
HeadFirstDesignPatterns.Factory.PizzaStore.PizzaStore nyStore =
new NYPizzaStore();
Pizza pizza = nyStore.OrderPizza("cheese");
string pizzaPrepareReturn = "Preparing NY Style Sauce and Cheese Pizza\n" +
"Tossing Thin Crust Dough\n" +
"Adding Martinara Sauce\n" +
"Adding toppings:\n" +
"\tGreated Reggiano Cheese\n";
Assert.AreEqual(pizzaPrepareReturn,pizza.Prepare());
Assert.AreEqual("Bake for 25 minutes at 350 \n",pizza.Bake());
Assert.AreEqual("Cutting the pizza into diagonal slices \n",pizza.Cut());
Assert.AreEqual("Place pizza in official PizzaStore box \n",pizza.Box());
Assert.AreEqual("NY Style Sauce and Cheese Pizza",pizza.GetName());
}
#endregion//TestNYStyleCheesePizza
public void TestNYStyleCheesePizza()
{
HeadFirstDesignPatterns.Factory.PizzaStore.PizzaStore nyStore =
new NYPizzaStore();
Pizza pizza = nyStore.OrderPizza("cheese");
string pizzaPrepareReturn = "Preparing NY Style Sauce and Cheese Pizza\n" +
"Tossing Thin Crust Dough\n" +
"Adding Martinara Sauce\n" +
"Adding toppings:\n" +
"\tGreated Reggiano Cheese\n";
Assert.AreEqual(pizzaPrepareReturn,pizza.Prepare());
Assert.AreEqual("Bake for 25 minutes at 350 \n",pizza.Bake());
Assert.AreEqual("Cutting the pizza into diagonal slices \n",pizza.Cut());
Assert.AreEqual("Place pizza in official PizzaStore box \n",pizza.Box());
Assert.AreEqual("NY Style Sauce and Cheese Pizza",pizza.GetName());
}
#endregion//TestNYStyleCheesePizza
北京新国信
2023-07-11 广告
2023-07-11 广告
1、测试需求分析阶段:阅读需求,理解需求,主要就是对业务的学习,分析需求点,参与需求评审会议。2、测试计划阶段:主要任务就是编写测试计划,参考软件需求规格说明书,项目总体计划,内容包括测试范围(来自需求文档),进度安排,人力物力的分配,整体...
点击进入详情页
本回答由北京新国信提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询