public void ConvertABCDEFGHIJFrom17To20() { var developerTools = new DeveloperTools(); var result = developerTools.Run("ConvertTo ABCDEFGHIJ 17 20"); Assert.AreEqual(result, "29AA9EF9HD"); }
public void ConvertABCDEFrom16To10() { var developerTools = new DeveloperTools(); var result = developerTools.Run("ConvertTo ABCDE 16 10"); Assert.AreEqual(result, "703710"); }
public void ConvertABCDEFGHIJFrom30To10() { var developerTools = new DeveloperTools(); var result = developerTools.Run("ConvertTo ABCDEFGHIJ 30 10"); Assert.AreEqual(result, "9066498599999"); }
public void GenerateNewPassword() { var developerTools = new DeveloperTools(); var result = developerTools.Run("password 21"); Assert.AreEqual(result.Length, 21); }
public void Convert100From10To16() { var developerTools = new DeveloperTools(); var result = developerTools.Run("ConvertTo 100 10 16"); Assert.AreEqual(result, "64"); }
public void ToBase64_test3() { var developerTools = new DeveloperTools(); var result = developerTools.Run("ToBase64 Flash2048.com"); Assert.AreEqual(result, "Rmxhc2gyMDQ4LmNvbQ=="); }
public void ToUpperTest() { var developerTools = new DeveloperTools(); var result = developerTools.Run("ToUpper test"); Assert.AreEqual(result, "TEST"); }
public void ToBase64_test1() { var developerTools = new DeveloperTools(); var result = developerTools.Run("Tobase64 This is text"); Assert.AreEqual(result, "VGhpcyBpcyB0ZXh0"); }
public void ToBase64_test2() { var developerTools = new DeveloperTools(); var result = developerTools.Run("ToBase64 Hello, world!"); Assert.AreEqual(result, "SGVsbG8sIHdvcmxkIQ=="); }
public void ToUnixTime01_03_2016__13_30_00() { var developerTools = new DeveloperTools(); var result = developerTools.Run("ToUnixTime 01.03.2016 13:30:00"); Assert.AreEqual(result, "1456839000"); }
public void FromUnixTime1456839000() { var developerTools = new DeveloperTools(); var result = developerTools.Run("FromUnixTime 1456839000"); Assert.AreEqual(result, "01.03.2016 13:30:00"); }
public void EmptyString() { var developerTools = new DeveloperTools(); var result = developerTools.Run(""); Assert.AreEqual(result, "Please input a string"); }
public void CommandQwe2NotFount() { var developerTools = new DeveloperTools(); var result = developerTools.Run("qwe"); Assert.AreEqual(result, "Command \"**qwe**\" not found. See \"**help**\" command."); }
public void CommandQweNotFount() { var developerTools = new DeveloperTools("telegram"); var result = developerTools.Run("/qwe this is text"); Assert.AreEqual(result, "Command \"**/qwe**\" not found. See \"**/help**\" command."); }
public void GetNewGuid() { var developerTools = new DeveloperTools(); var result = developerTools.Run("newGuid"); Guid guid; Guid.TryParse(result, out guid); Assert.AreNotEqual(guid, Guid.Empty); }