Skip to content

Commit

Permalink
edit RE test to use packs
Browse files Browse the repository at this point in the history
  • Loading branch information
deltanedas committed Feb 10, 2025
1 parent 3cb9adc commit b61fb58
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ public async Task AllReverseEngineeredPrintableTest()
await using var pair = await PoolManager.GetServerClient();
var server = pair.Server;

var protoManager = server.ResolveDependency<IPrototypeManager>();
var entMan = server.ResolveDependency<IEntityManager>();
var protoMan = server.ResolveDependency<IPrototypeManager>();
var latheSys = entMan.System<SharedLatheSystem>();

await server.WaitAssertion(() =>
{
var lathes = new List<LatheComponent>();
var reverseEngineered = new HashSet<string>();
foreach (var proto in protoManager.EnumeratePrototypes<EntityPrototype>())
var reverseEngineered = new HashSet<ProtoId<LatheRecipePrototype>>>();

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

A new expression requires an argument list or (),

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Invalid expression term ')'

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

A new expression requires an argument list or (),

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Invalid expression term ')'

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

A new expression requires an argument list or (),

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Invalid expression term ')'

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

A new expression requires an argument list or (),

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Invalid expression term ')'

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

A new expression requires an argument list or (),

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Invalid expression term ')'

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

A new expression requires an argument list or (),

Check failure on line 24 in Content.IntegrationTests/Tests/_DV/ReverseEngineeringTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Invalid expression term ')'
foreach (var proto in protoMan.EnumeratePrototypes<EntityPrototype>())
{
if (proto.Abstract)
continue;
Expand All @@ -43,13 +45,10 @@ await server.WaitAssertion(() =>
var latheRecipes = new HashSet<string>();
foreach (var lathe in lathes)
{
if (lathe.DynamicRecipes == null)
if (lathe.DynamicPacks == null)
continue;

foreach (var recipe in lathe.DynamicRecipes)
{
latheRecipes.Add(recipe);
}
latheSys.AddRecipesFromPacks(latheRecipes, lathe.DynamicPacks);
}

Assert.Multiple(() =>
Expand Down

0 comments on commit b61fb58

Please sign in to comment.