public void TestGetRelationships() { MockTeam teamA = new(); MockTeam teamB = new(); MockTeam teamC = new(); var graph = new AllianceGraph(); graph.AddRelation(teamA, teamB, TeamRelationship.Allied); graph.AddRelation(teamA, teamC, TeamRelationship.Neutral); var relationships = graph.GetRelationships(teamA); foreach (var relationship in relationships) { if (relationship.Key == teamB) { Assert.AreEqual(TeamRelationship.Allied, relationship.Value); } if (relationship.Key == teamC) { Assert.AreEqual(TeamRelationship.Neutral, relationship.Value); } } }