Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 305db920 authored by Harald Martini's avatar Harald Martini
Browse files

Added Test for completed Exempted Vehicle

parent ec4e5caf
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ namespace VECTO3GUI2020.ViewModel.Implementation.Common
if (_parent.InvalidEntries != null && _parent.InvalidEntries.Count != 0) {
ErrorInfo = "This Job cannot be Simulated because the following Parameters are invalid";
ErrorInfo = "This Job cannot be Simulated! The following inputs are missing or invalid";
foreach (var parentInvalidEntry in _parent.InvalidEntries)
{
InvalidEntries.Add(parentInvalidEntry);
......
......@@ -118,7 +118,7 @@ namespace Vecto3GUI2020Test.ViewModelTests
public void CreateCompletedExemptedVif()
{
var multistagevm = loadFile(exempted_primary_vif).MultiStageJobViewModel as MultiStageJobViewModel_v0_1;
var jobListVm = _kernel.Get<IJobListViewModel>();
var vehicleVm =
multistagevm.ManufacturingStageViewModel.VehicleViewModel as InterimStageBusVehicleViewModel_v2_8;
......@@ -146,7 +146,10 @@ namespace Vecto3GUI2020Test.ViewModelTests
Assert.NotNull(vifName);
WriteLine($"Written to {vifName}");
Assert.IsTrue(checkFileNameExists(vifName));
File.Delete(vifName);
Assert.AreEqual(2, jobListVm.Jobs.Count);
Assert.IsTrue(jobListVm.Jobs[1].CanBeSimulated, string.Join("\n",((AdditionalJobInfoViewModelMultiStage)jobListVm.Jobs[1].AdditionalJobInfoVm).InvalidEntries));
}
......
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