public void CropWithMissingRequiredInfoTest()
{
var crops = new List<String>
{
TestData.TestData.Crop4,
TestData.TestData.Crop5,
TestData.TestData.Crop6,
};
for (int i = 0; i < crops.Count; i++)
{
// Setup
var taskDocument = new TaskDataDocument();
var path = Path.Combine(_directory, String.Format("crop{0}.xml", i));
File.WriteAllText(path, crops[i]);
// Act
var result = taskDocument.LoadFromFile(path);
// Verify
Assert.IsTrue(result);
Assert.IsNotNull(taskDocument.Crops);
Assert.AreEqual(0, taskDocument.Crops.Count);
}
}