Exemple #1
0
        public void ReturnDictionaryValue()
        {
            string expected = "text";
            var    actual   = _rm.Get("key.example");

            Assert.Equal(expected, actual);
        }
 public PageViewModel(string displayName, string iconsResource)
 {
     DisplayName   = displayName;
     IconsResource = ResourceHandler.Get <DataTemplate>(iconsResource);
 }
Exemple #3
0
 /// <summary>
 /// Get an <see cref="InputMapping"/> that was previously created.
 /// </summary>
 /// <param name="name">The name that was given to the previously created input mapping.</param>
 /// <returns>The input mapping with the given name.</returns>
 public InputMapping GetMapping(string name)
 {
     return(inputMappings.Get(name));
 }
Exemple #4
0
 public SpriteAtlasEntry GetEntry(string name)
 {
     return(entries.Get(name));
 }
Exemple #5
0
 public Texture2D GetPage(string page)
 {
     return(images.Get(page));
 }