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); }
/// <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)); }
public SpriteAtlasEntry GetEntry(string name) { return(entries.Get(name)); }
public Texture2D GetPage(string page) { return(images.Get(page)); }