Esempio n. 1
0
        public void TestFileListFailure()
        {
            AutoUpdate updater = new AutoUpdate();

            updater.UserKey        = "";
            updater.CurrentVersion = testVersion;
            string[] files = updater.GetFileList();
            Assert.IsNull(files);
        }
Esempio n. 2
0
        public void TestFileListSuccess()
        {
            AutoUpdate updater = new AutoUpdate();

            updater.CurrentVersion = testVersion;
            string[] files = updater.GetFileList();
            Assert.AreEqual(4, files.Length);
            Assert.AreEqual("IBProviderService-0.9.3.381.exe.zip 0fd11edfa0fdd939124db4abf80d6443", files[0]);
            Assert.AreEqual("Krs.Ats.IBNet-0.9.3.381.dll.zip 05d553bd4779d2ba2c24bf8b6dcfcf8e", files[1]);
            Assert.AreEqual("ProviderCommon-0.9.3.381.dll.zip 5e5bcdd92d30ed2450ffc04e48315a69", files[2]);
            Assert.AreEqual("TickZoomEngine-0.9.3.381.dll.zip 4d753fc28cee519a100ac37ec859ec9b", files[3]);
        }
Esempio n. 3
0
        public void TestFileListSuccess()
        {
            AutoUpdate updater = new AutoUpdate();

            updater.CurrentVersion = testVersion;
            string[] files = updater.GetFileList();
            Assert.NotNull(files, "result from getfiles");
            Assert.AreEqual(2, files.Length);

            Assert.IsTrue(files[0].StartsWith("ProviderCommon-1.2.51.51756.dll.zip"), files[0]);
            Assert.IsTrue(files[1].StartsWith("TickZoomEngine-1.2.51.51756.dll.zip"), files[1]);
        }