public void ThrowsGivenInputIsContainsInvalidCharacters() { const string invalidCharacter = "!"; Caesar caesar = makeCeasar(); caesar.Encode(invalidCharacter, 53); }
public void ReturnsStringWithRot0() { Caesar caesar = makeCeasar(); Assert.AreEqual("A", caesar.Encode("A", 0)); }
public void ReturnsWrappedCharacterGivenCharacterWrapsMultipleTimes() { Caesar caesar = makeCeasar(); Assert.AreEqual("B", caesar.Encode("A", 53)); }
public void ReturnsWrappedCharacterGivenNegativeOffsetForInputExceedsCharacterSet() { Caesar caesar = makeCeasar(); Assert.AreEqual("Z", caesar.Encode("A", -1)); }
public void ReturnsInputWithTwoCharactersWithOffsetOfOne() { Caesar caesar = makeCeasar(); Assert.AreEqual("BC", caesar.Encode("AB", 1)); }
public void ReturnsUpperCaseInput() { Caesar caesar = makeCeasar(); Assert.AreEqual("A", caesar.Encode("a", 0)); }