public void TestGenerationCombination() { var keys = generateKeys(4); var controller = new RecipesController(); var combos = controller.getZobrists(keys); Assert.Equal(15, combos.Count()); Assert.Contains(keys[0], combos); Assert.Contains(keys[1], combos); Assert.Contains(keys[2], combos); Assert.Contains(keys[3], combos); Assert.Contains(keys[0] ^ keys[1], combos); Assert.Contains(keys[0] ^ keys[2], combos); Assert.Contains(keys[0] ^ keys[3], combos); Assert.Contains(keys[1] ^ keys[2], combos); Assert.Contains(keys[1] ^ keys[3], combos); Assert.Contains(keys[2] ^ keys[3], combos); Assert.Contains(keys[0] ^ keys[1] ^ keys[2], combos); Assert.Contains(keys[0] ^ keys[1] ^ keys[3], combos); Assert.Contains(keys[1] ^ keys[2] ^ keys[3], combos); Assert.Contains(keys[0] ^ keys[2] ^ keys[3], combos); Assert.Contains(keys[0] ^ keys[1] ^ keys[2] ^ keys[3], combos); }