Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 71209d28 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

empty lookahead data does no longer throw an exceltion -> adapt testcase

parent 0d53a23b
No related branches found
No related tags found
No related merge requests found
......@@ -137,11 +137,9 @@ namespace TUGraz.VectoCore.Tests.FileIO
var json = (JObject)JToken.ReadFrom(new JsonTextReader(File.OpenText(TestJobFile)));
((JObject)json["Body"]).Property("LAC").Remove();
AssertHelper.Exception<VectoException>(
() => {
IEngineeringInputDataProvider input = new JSONInputDataV2(json, TestJobFile);
var tmp = input.DriverInputData.Lookahead;
}, "Key LAC not found");
IEngineeringInputDataProvider input = new JSONInputDataV2(json, TestJobFile);
var tmp = input.DriverInputData.Lookahead;
Assert.IsNull(tmp);
}
[TestMethod]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment