/// <summary>
        /// Textures in given path will be used if a texture is not found
        /// </summary>
        public void AddAssemblyResolvePath(Assembly assembly, string path)
        {
            var r = new ResolvePath {
                Assembly = assembly, Path = path
            };

            resolvePaths.Add(r);
        }
Exemple #2
0
        public static IEnumerable <object[]> ResolvePath_AllCases()
        {
            var cases = new[]
            {
                ResolvePath.SimpleRelativePath(),
                ResolvePath.RelativePathContainsMoreLevelsDown(),
                ResolvePath.UncommonCharacters(),
                ResolvePath.RelativePathGoesLevelUp(),
                ResolvePath.RelativePathIsEmpty_And_GoesLevelUp(),
                ResolvePath.RelativePathGoesLevelUp_And_ExceedsMinimumLevel(),
                ResolvePath.ToSamePath()
            };

            foreach (var @case in cases)
            {
                foreach (var set in @case)
                {
                    yield return(set);
                }
            }
        }