public void AllSwap() { #if !DEBUG Assert.Multiple(() => { #endif var expected = new[] { "ac", "ab" }; var actual = _object.AllSwap(new[] { "ab", "ac" }); Assert.Equal(expected, actual); expected = new[] { "ay", "by", "cy", "cx", "bx", "ax", "azz", "aaa" }; actual = _object.AllSwap(new[] { "ax", "bx", "cx", "cy", "by", "ay", "aaa", "azz" }); Assert.Equal(expected, actual); expected = new[] { "ay", "by", "ax", "bx", "aj", "ai", "by", "bx" }; actual = _object.AllSwap(new[] { "ax", "bx", "ay", "by", "ai", "aj", "bx", "by" }); Assert.Equal(expected, actual); expected = new[] { "ay", "bx", "cy", "ax", "cx", "abb", "aaa" }; actual = _object.AllSwap(new[] { "ax", "bx", "cx", "ay", "cy", "aaa", "abb" }); Assert.Equal(expected, actual); expected = new[] { "every", "does", "ice", "easy", "it", "eaten" }; actual = _object.AllSwap(new[] { "easy", "does", "it", "every", "ice", "eaten" }); Assert.Equal(expected, actual); expected = new[] { "lily", "over", "water", "swims", "of", "list", "words", "wait" }; actual = _object.AllSwap(new[] { "list", "of", "words", "swims", "over", "lily", "water", "wait" }); Assert.Equal(expected, actual); expected = new[] { "42", "8", "16", "15", "23", "4" }; actual = _object.AllSwap(new[] { "4", "8", "15", "16", "23", "42" }); Assert.Equal(expected, actual); expected = new[] { "aaa" }; actual = _object.AllSwap(new[] { "aaa" }); Assert.Equal(expected, actual); expected = new string[0]; actual = _object.AllSwap(new string[0]); Assert.Equal(expected, actual); expected = new[] { "a", "b", "c", "xx", "yy", "zz" }; actual = _object.AllSwap(new[] { "a", "b", "c", "xx", "yy", "zz" }); Assert.Equal(expected, actual); #if !DEBUG }); #endif }