public void ShouldReturnCode()
 {
     var entry = new PictogramEntry("a3", "flicka");
     Assert.That(entry.CategoryCode, Is.EqualTo("a"));
 }
Exemplo n.º 2
0
 private Dictionary<string, PictogramEntry> GetPictogramEntriesByCode(string[] strings)
 {
     var entriesByCode = new Dictionary<string, PictogramEntry>();
     for (var i = 0; i < strings.Length; i = i + 2 ) {
         var code = strings[i];
         var name = strings[i + 1];
         entriesByCode[code] = new PictogramEntry(code, name);
     }
     return entriesByCode;
 }