示例#1
0
        public void GivenAnySegements_MustCombined()
        {
            var args = new string[] { "a", "b", "c" };
            var exp  = ConfigurationPath.Combine(args);
            var p    = new ConfigPathAttribute(args);

            Assert.AreEqual(exp, p.Name);
        }
示例#2
0
 public void Load(AssetManager am)
 {
     if (string.IsNullOrEmpty(file))
     {
         Type type = this.GetType();
         pathattr = type.GetCustomAttributes(typeof(ConfigPathAttribute), false)[0] as ConfigPathAttribute;
         file     = pathattr.assetName;
     }
     am.Load(file, OnLoad);
 }