public void zero_iterations_are_possible() { Combinator_for_figure combinator = new Combinator_for_figure( max_subnodes, needed_amount ); Assert.IsFalse(combinator.MoveNext()); }
public void all_combinations_are_provided_in_a_loop() { Combinator_for_figure combinator = new Combinator_for_figure( max_subnodes, needed_amount ); int i_combination = 0; while (combinator.MoveNext()) { Debug.Log( string.Join(", ", combinator.combination) ); CollectionAssert.AreEquivalent( result_combinations[i_combination++], combinator.combination ); } Assert.AreEqual(result_combinations.Length, i_combination); }