Exemple #1
0
        public void GivenBReturnABBA()
        {
            var returnValue = Diamond.Process('B');

            Assert.AreEqual(
                " A\n" +
                "B B\n" +
                " A", returnValue);
        }
Exemple #2
0
        public void GivenCReturnABCCBA()
        {
            var returnValue = Diamond.Process('C');

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