Add reagent dispenser BUI test (#15443)

This commit is contained in:
Leon Friedrich
2023-04-17 04:34:36 +12:00
committed by GitHub
parent 6e0022d30f
commit a1f103d1e7
4 changed files with 181 additions and 20 deletions

View File

@@ -62,6 +62,10 @@ public abstract partial class InteractionTest
return;
Converted = true;
if (string.IsNullOrWhiteSpace(Prototype))
return;
if (protoMan.HasIndex<StackPrototype>(Prototype))
return;
@@ -121,6 +125,6 @@ public abstract partial class InteractionTest
var meta = SEntMan.GetComponent<MetaDataComponent>(uid);
Assert.NotNull(meta.EntityPrototype);
return new (meta.EntityPrototype.ID, 1) { Converted = true };
return new (meta.EntityPrototype!.ID, 1) { Converted = true };
}
}