public void Alphabet_LowerCase() { var source = "abcdefghijklmnopqrstuvwxyz"; var actual = AlternateCaseCommand.AlternateCaseLogic(source); Assert.AreEqual("AbCdEfGhIjKlMnOpQrStUvWxYz", actual); }
public void SimpleFunctionalityWorksOk() { var source = "Mixed Case Sentence."; var actual = AlternateCaseCommand.AlternateCaseLogic(source); Assert.AreEqual("MiXeD cAsE sEnTeNcE.", actual); }
public void CanHandleWhiteSpace() { var actual = AlternateCaseCommand.AlternateCaseLogic(" "); Assert.AreEqual(" ", actual); }
public void CanHandleEmptyString() { var actual = AlternateCaseCommand.AlternateCaseLogic(string.Empty); Assert.AreEqual(string.Empty, actual); }
public void CanHandleNull() { var actual = AlternateCaseCommand.AlternateCaseLogic(null); Assert.AreEqual(null, actual); }
public void CanHandleCyrillic() { var actual = AlternateCaseCommand.AlternateCaseLogic("матт"); Assert.AreEqual("МаТт", actual); }
public void CanHandleNonAscii() { var actual = AlternateCaseCommand.AlternateCaseLogic("mrlääcey"); Assert.AreEqual("MrLäÄcEy", actual); }