Ejemplo n.º 1
0
        public void PaserError()
        {
            hashSetErrorUnserializer.Add(_params [0].path);
            ResourceRef refs = new ResourceRef(_params [0].path, resourceManager);

            dictResources.Add(_params [0].path, refs);
            refs.Start();
            Assert.IsFalse(string.IsNullOrEmpty(refs.Error));
            hashSetErrorUnserializer.Clear();
        }
Ejemplo n.º 2
0
        public void DependencsError()
        {
            downloader.AddErrorFile(_params [0].path);
            ResourceRef refs = new ResourceRef(_params [4].path, resourceManager);

            dictResources.Add(_params [4].path, refs);
            refs.Start();
            Assert.IsFalse(string.IsNullOrEmpty(refs.Error));
            downloader.ClearErrorFiles();
        }
Ejemplo n.º 3
0
        public void NoDependencs()
        {
            ResourceRef refs = new ResourceRef(_params [0].path, resourceManager);

            dictResources.Add(_params [0].path, refs);
            refs.Start();

            Assert.AreEqual(1, dictResources.Count);
            Assert.IsTrue(dictResources.ContainsKey(_params [0].path));
            Assert.IsTrue(string.IsNullOrEmpty(refs.Error));
        }