Version Error Message
This commit is contained in:
parent
f798e59451
commit
54862092ac
@ -562,7 +562,7 @@ public class AdaptationTesting : ISMTP
|
|||||||
else if (i == 1)
|
else if (i == 1)
|
||||||
{
|
{
|
||||||
if (componentsCellComponentCellComponent.Equipment.EquipmentType.Version != cellInstanceVersionName)
|
if (componentsCellComponentCellComponent.Equipment.EquipmentType.Version != cellInstanceVersionName)
|
||||||
throw new Exception("Versions should match!");
|
throw new Exception($"Versions should match! {componentsCellComponentCellComponent.Equipment.EquipmentType.Version} != {cellInstanceVersionName}");
|
||||||
equipmentTypeName = componentsCellComponentCellComponent.Equipment.EquipmentType.Name;
|
equipmentTypeName = componentsCellComponentCellComponent.Equipment.EquipmentType.Name;
|
||||||
_ = stringBuilder.
|
_ = stringBuilder.
|
||||||
AppendLine("#if true").
|
AppendLine("#if true").
|
||||||
@ -1244,6 +1244,8 @@ public class AdaptationTesting : ISMTP
|
|||||||
{
|
{
|
||||||
string result;
|
string result;
|
||||||
Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResult = fileRead.ReExtract();
|
Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResult = fileRead.ReExtract();
|
||||||
|
if(extractResult is null)
|
||||||
|
throw new Exception($"Using pattern {variables[4]} no file was found <{variables[2]}>");
|
||||||
if (!fileRead.IsDuplicator)
|
if (!fileRead.IsDuplicator)
|
||||||
{
|
{
|
||||||
Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));
|
Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user