Ejemplo n.º 1
0
        public void TryGet_ReadSameRawResources_Returns2EqualRawResource()
        {
            RawResource rawResource1 = ResourceManager.ReadRaw(f_filePath);
            RawResource rawResource2 = ResourceManager.ReadRaw(f_filePath);

            Assert.AreEqual(rawResource1.GetHashCode(), rawResource2.GetHashCode()); //because the resource was cached
        }
Ejemplo n.º 2
0
        public void TryGet_ReadSameRawResourcesViaAbsolutAndRelativFilename_Returns2EqualRawResource()
        {
            FileInfo    fi           = new FileInfo(f_filePath);
            RawResource rawResource1 = ResourceManager.ReadRaw(f_filePath);
            RawResource rawResource2 = ResourceManager.ReadRaw(fi.FullName);

            Assert.AreEqual(rawResource1.GetHashCode(), rawResource2.GetHashCode()); //because the resource was cached
        }