示例#1
0
 void CheckProperties(AddinRepositoryEntry[] areps, string id, params string[] props)
 {
     AddinRepositoryEntry arep = areps.FirstOrDefault (a => a.Addin.Id == id);
     for (int n=0; n<props.Length; n+=2)
         Assert.AreEqual (props[n+1], arep.Addin.Properties.GetPropertyValue (props[n]));
 }
示例#2
0
 void CheckAddin(AddinRepositoryEntry[] areps, string id, string ns, string version, string compat, string name, string category, string author, string copyright, string desc)
 {
     AddinRepositoryEntry arep = areps.FirstOrDefault (a => a.Addin.Id == id);
     Assert.IsNotNull (arep, "Add-in " + id + " not found");
     Assert.AreEqual (id, arep.Addin.Id);
     Assert.AreEqual (ns, arep.Addin.Namespace);
     Assert.AreEqual (version, arep.Addin.Version);
     Assert.AreEqual (compat, arep.Addin.BaseVersion);
     Assert.AreEqual (name, arep.Addin.Name);
     Assert.AreEqual (category, arep.Addin.Category);
     Assert.AreEqual (author, arep.Addin.Author);
     Assert.AreEqual (copyright, arep.Addin.Copyright);
     Assert.AreEqual (desc, arep.Addin.Description);
 }