public void Given_0234_redistribute_should_produce_1341() { var bank = new MemoryBankDistribution(); var result = new int[] { 0, 2, 3, 4 }; var expected = new int[] { 1, 3, 4, 1 }; bank.Redistribute(result); Assert.True(AreSame(expected, result)); }
public void Given_2412_redistribute_should_produce_3123() { var bank = new MemoryBankDistribution(); var result = new int[] { 2, 4, 1, 2 }; var expected = new int[] { 3, 1, 2, 3 }; bank.Redistribute(result); Assert.True(AreSame(expected, result)); }