Exemplo n.º 1
0
 public void AddAplha_Simple()
 {
     Assert.AreEqual('b', CharUtil.AlphaAdd(1, 'a'));
     Assert.AreEqual('c', CharUtil.AlphaAdd(2, 'a'));
     Assert.AreEqual('B', CharUtil.AlphaAdd(1, 'A'));
     Assert.AreEqual('C', CharUtil.AlphaAdd(2, 'A'));
 }
Exemplo n.º 2
0
 public void AddAlpha_PastLowerBound()
 {
     Assert.AreEqual('a', CharUtil.AlphaAdd(-1, 'a'));
     Assert.AreEqual('A', CharUtil.AlphaAdd(-1, 'A'));
 }
Exemplo n.º 3
0
 public void AddAlpha_PastUpperBound()
 {
     Assert.AreEqual('z', CharUtil.AlphaAdd(1, 'z'));
     Assert.AreEqual('Z', CharUtil.AlphaAdd(1, 'Z'));
 }