public void SouldPrintLetterSequenceIdented() { var result = Diamond.Print("C"); result.Should() .Be("\n A\n B B\n C C\n B B\n A"); }
public void A() { Diamond diamond = new Diamond('A'); string expected = "A\n"; Assert.AreEqual(expected, diamond.Print()); }
public void SouldPrintLetterBigSequenceIdented() { var result = Diamond.Print("J"); result.Should() .Be("\n A\n B B\n C C\n D D\n E E\n F F\n G G\n H H\n I I\n J J\n I I\n H H\n G G\n F F\n E E\n D D\n C C\n B B\n A"); }
public void DiamondC_has_indentation_on_all_rows_except_middle() { Assert.AreEqual(" A\n" + " B\n" + "C\n" + " B\n" + " A", Diamond.Print('C')); }
public void DiamondC_has_duplicates_on_middle_rows() { Assert.AreEqual(" A\n" + " BB\n" + "CC\n" + " BB\n" + " A", Diamond.Print('C')); }
public void DiamondC_has_between_spaces_on_all_rows_except_first_and_last() { Assert.AreEqual(" A\n" + " B B\n" + "C C\n" + " B B\n" + " A", Diamond.Print('C')); }
public void print_DiamondC() { Assert.AreEqual(" A\n" + " B B\n" + "C C\n" + " B B\n" + " A", Diamond.Print('C')); }
public void DiamondD_is_correct_in_all_aspects() { Assert.AreEqual(" A\n" + " B B\n" + " C C\n" + "D D\n" + " C C\n" + " B B\n" + " A", Diamond.Print('D')); }
public void C() { Diamond diamond = new Diamond('C'); string expected = " A\n" + " B B\n" + "C C\n" + " B B\n" + " A\n"; Assert.AreEqual(expected, diamond.Print()); }
public void DiamondB() { Assert.AreEqual(" A \nB B\n A ", Diamond.Print('B')); }
public void DiamondB_has_indentation_on_first_and_last_rows() { Assert.AreEqual(" A\nB\n A", Diamond.Print('B')); }
public void DiamondA_has_one_line_containing_A() { Assert.AreEqual("A", Diamond.Print('A')); }
public void DiamondA() { Assert.AreEqual("A", Diamond.Print('A')); }
public void DiamondB_has_a_space_between_the_Bs() { Assert.AreEqual(" A\nB B\n A", Diamond.Print('B')); }
public void DiamondB_prints_a_char_sequence_for_the_top_half() { Assert.AreEqual("AB", Diamond.Print('B')); }
public void DiamondB_duplicates_B_on_middle_row() { Assert.AreEqual(" A\nBB\n A", Diamond.Print('B')); }
public void DiamondC_prints_a_char_sequence_for_the_whole_diamond() { Assert.AreEqual("ABCBA", Diamond.Print('C')); }
public void DiamondB_has_newlines() { Assert.AreEqual("A\nB\nA", Diamond.Print('B')); }