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); }
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); }