Skip to content

Instantly share code, notes, and snippets.

@skoon
Created August 14, 2009 21:30
Show Gist options
  • Save skoon/168117 to your computer and use it in GitHub Desktop.
Save skoon/168117 to your computer and use it in GitHub Desktop.
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