public void GivenBReturnABBA() { var returnValue = Diamond.Process('B'); Assert.AreEqual( " A\n" + "B B\n" + " A", returnValue); }
public void GivenCReturnABCCBA() { var returnValue = Diamond.Process('C'); Assert.AreEqual( " A\n" + " B B\n" + "C C\n" + " B B\n" + " A", returnValue); }
public void GivenInvalidValueThrowsException() { Assert.ThrowsException <ArgumentOutOfRangeException>(() => Diamond.Process('a')); }