コード例 #1
0
        public void ConvertABCDEFGHIJFrom17To20()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("ConvertTo ABCDEFGHIJ 17 20");

            Assert.AreEqual(result, "29AA9EF9HD");
        }
コード例 #2
0
        public void ConvertABCDEFrom16To10()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("ConvertTo ABCDE 16 10");

            Assert.AreEqual(result, "703710");
        }
コード例 #3
0
        public void ConvertABCDEFGHIJFrom30To10()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("ConvertTo ABCDEFGHIJ 30 10");

            Assert.AreEqual(result, "9066498599999");
        }
コード例 #4
0
        public void GenerateNewPassword()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("password 21");

            Assert.AreEqual(result.Length, 21);
        }
コード例 #5
0
        public void Convert100From10To16()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("ConvertTo 100 10 16");

            Assert.AreEqual(result, "64");
        }
コード例 #6
0
        public void ToBase64_test3()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("ToBase64 Flash2048.com");

            Assert.AreEqual(result, "Rmxhc2gyMDQ4LmNvbQ==");
        }
コード例 #7
0
        public void ToUpperTest()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("ToUpper test");

            Assert.AreEqual(result, "TEST");
        }
コード例 #8
0
        public void ToBase64_test1()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("Tobase64 This is text");

            Assert.AreEqual(result, "VGhpcyBpcyB0ZXh0");
        }
コード例 #9
0
        public void ToBase64_test2()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("ToBase64 Hello, world!");

            Assert.AreEqual(result, "SGVsbG8sIHdvcmxkIQ==");
        }
コード例 #10
0
        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");
        }
コード例 #11
0
        public void FromUnixTime1456839000()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("FromUnixTime 1456839000");

            Assert.AreEqual(result, "01.03.2016 13:30:00");
        }
コード例 #12
0
        public void EmptyString()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("");

            Assert.AreEqual(result, "Please input a string");
        }
コード例 #13
0
        public void CommandQwe2NotFount()
        {
            var developerTools = new DeveloperTools();
            var result         = developerTools.Run("qwe");

            Assert.AreEqual(result, "Command \"**qwe**\" not found. See \"**help**\" command.");
        }
コード例 #14
0
        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.");
        }
コード例 #15
0
        public void GetNewGuid()
        {
            var  developerTools = new DeveloperTools();
            var  result         = developerTools.Run("newGuid");
            Guid guid;

            Guid.TryParse(result, out guid);
            Assert.AreNotEqual(guid, Guid.Empty);
        }