Created
August 14, 2009 21:30
-
-
Save skoon/168117 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Company.Internal.FunctionalTests.PPM.Selenium.GanttTests | |
{ | |
[TestClass] | |
public class GanttChartTests | |
{ | |
[TestMethod] | |
public void should_load_with_no_tasks_except_the_default_blank_task() | |
{ | |
var ganttChart = GanttTest.NewTest | |
.NewProject | |
.LoadGanttChart; | |
Assert.AreEqual(1, ganttChart.TaskCount); | |
} | |
[TestMethod] | |
public void should_not_be_able_to_create_a_new_task_with_the_schedule_checked_in() | |
{ | |
var ganttChart = | |
GanttTest.NewTest | |
.NewProject | |
.LoadGanttChart | |
.CheckIn; | |
int taskCountBefore = ganttChart.TaskCount; | |
ganttChart.CreateNewTask(); | |
Assert.AreEqual(taskCountBefore,ganttChart.TaskCount); | |
} | |
[TestMethod] | |
public void should_create_three_new_tasks() | |
{ | |
var ganttChart = GanttTest.NewTest | |
.NewProject | |
.LoadGanttChart | |
.CheckOut | |
.CreateNewTask() | |
.Repeat(3); | |
Assert.AreEqual(4,ganttChart.TaskCount); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment