私は次の仕様を持っています
BidirectionalGraph Fixture = new BidirectionalGraph();
public void VerticesShouldBeAbleToAssociateMultipleEdges()
{
int a = 0;
int b = 1;
int c = 2;
Fixture.AddEdge(a, b);
Fixture.AddEdge(b, c);
Fixture.AddEdge(c, a);
Fixture.EdgesFrom(a).Should().BeEquivalentTo
( new []{a, b}
, new []{a, c});
}
EdgesFrom が定義されている場所
public IEnumerable<int[]> EdgesFrom(int vertex)
ただし、私のテストは失敗します
Result Message: Expected collection
{{0, 1}, {0, 2}} to be equivalent to
{{0, 1}, {0, 2}}.
それらは明らかに同等であるため、これは私にはあまり意味がありません。コレクションのコレクションを比較するときに機能FluentAssertions
しませんか?