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')); }
public void AddAlpha_PastLowerBound() { Assert.AreEqual('a', CharUtil.AlphaAdd(-1, 'a')); Assert.AreEqual('A', CharUtil.AlphaAdd(-1, 'A')); }
public void AddAlpha_PastUpperBound() { Assert.AreEqual('z', CharUtil.AlphaAdd(1, 'z')); Assert.AreEqual('Z', CharUtil.AlphaAdd(1, 'Z')); }