Skip to content

Commit

Permalink
patched blueprints.json
Browse files Browse the repository at this point in the history
  • Loading branch information
msarilar committed May 3, 2018
1 parent 792f7bf commit 1169e16
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 104 deletions.
3 changes: 3 additions & 0 deletions EDEngineer.Tests/ReferenceDataIntegrityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ public void Blueprints_ingredients_exist()
var ingredients = blueprints.SelectMany(b => b.Ingredients).Select(i => i.Name).ToHashSet();
var materials = entries.Select(e => e.Name).ToHashSet();

var unknownIngredients = ingredients.Where(i => !materials.Contains(i)).ToList();
Check.That(unknownIngredients).IsEmpty();

Check.That(ingredients).ContainsOnlyElementsThatMatch(i => materials.Contains(i));
}

Expand Down
Loading

0 comments on commit 1169e16

Please sign in to comment.