本文整理汇总了C#中TaskStatus.getTaskID方法的典型用法代码示例。如果您正苦于以下问题:C# TaskStatus.getTaskID方法的具体用法?C# TaskStatus.getTaskID怎么用?C# TaskStatus.getTaskID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TaskStatus
的用法示例。
在下文中一共展示了TaskStatus.getTaskID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: test1
public static void test1()
{
TaskStatus task = new TaskStatus("T-001");
if (task.getTaskID() != "T-001")
System.Console.WriteLine("Error @ TaskStatus.getTaskID: Out <{1}> ,Expected <{2}>", task.getTaskID(), "T-001");
else System.Console.WriteLine("Success @ TaskStatus.getTaskID");
task.setTaskName("T-002");
if (task.getTaskName() != "T-002")
System.Console.WriteLine("Error @ TaskStatus.getTaskName: Out <{1}> ,Expected <{2}>", task.getTaskName(), "T-002");
else System.Console.WriteLine("Success @ TaskStatus.getTaskName");
task.setTaskStatus(Status.Waiting);
if (task.getTaskStatus() != Status.Waiting)
System.Console.WriteLine("Error @ TaskStatus.getTaskStatus: Out <{1}> ,Expected <{2}>", task.getTaskStatus(), Status.Waiting);
else System.Console.WriteLine("Success @ TaskStatus.getTaskStatus");
task.setTaskElapsedTime(634);
if (task.getTaskElapsedTime() != 634)
System.Console.WriteLine("Error @ TaskStatus.getTaskElapsedTime: Out <{1}> ,Expected <{2}>", task.getTaskElapsedTime(), 634);
else System.Console.WriteLine("Success @ TaskStatus.getTaskElapsedTime");
}