public void place_letter_at_other_coordinates() { Assert.AreEqual(Arrays.AsList(Arrays.AsList(' ')) , Diamond.PlaceLetter(new Diamond('A').SpaceArray(), new Point(1, 0), 'Z')); Assert.AreEqual(Arrays.AsList( Arrays.AsList(' ', ' ', ' '), Arrays.AsList(' ', ' ', 'Z'), Arrays.AsList(' ', ' ', ' ')) , Diamond.PlaceLetter(new Diamond('B').SpaceArray(), new Point(1, 0), 'Z')); Assert.AreEqual(Arrays.AsList( Arrays.AsList(' ', ' ', ' ', ' ', ' '), Arrays.AsList(' ', ' ', ' ', ' ', ' '), Arrays.AsList(' ', 'Z', ' ', ' ', ' '), Arrays.AsList(' ', ' ', ' ', ' ', ' '), Arrays.AsList(' ', ' ', ' ', ' ', ' ')) , Diamond.PlaceLetter(new Diamond('C').SpaceArray(), new Point(-1, 0), 'Z')); }
public void place_letter_center() { Assert.AreEqual(Arrays.AsList(Arrays.AsList('A')) , Diamond.PlaceLetter(new Diamond('A').SpaceArray(), new Point(0, 0), 'Z')); Assert.AreEqual(Arrays.AsList( Arrays.AsList(' ', ' ', ' '), Arrays.AsList(' ', 'Z', ' '), Arrays.AsList(' ', ' ', ' ')) , Diamond.PlaceLetter(new Diamond('B').SpaceArray(), new Point(0, 0), 'Z')); Assert.AreEqual(Arrays.AsList( Arrays.AsList(' ', ' ', ' ', ' ', ' '), Arrays.AsList(' ', ' ', ' ', ' ', ' '), Arrays.AsList(' ', ' ', 'Z', ' ', ' '), Arrays.AsList(' ', ' ', ' ', ' ', ' '), Arrays.AsList(' ', ' ', ' ', ' ', ' ')) , Diamond.PlaceLetter(new Diamond('C').SpaceArray(), new Point(0, 0), 'Z')); }