public void CanGetAllEmoticons() { var client = new HipchatClient(); var emoticons = client.GetAllEmoticons(); Assert.Equal(100, emoticons.Items.Count); }
public void CanGetEmoticonByShortcut() { var client = new HipchatClient(); var emoticons = client.GetAllEmoticons(); var firstEmoticon = emoticons.Items[0]; var emoticonByShortcut = client.GetEmoticon(firstEmoticon.Shortcut); Assert.Equal(firstEmoticon.Shortcut, emoticonByShortcut.Shortcut); Assert.True(emoticonByShortcut.Height > 0); Assert.True(emoticonByShortcut.Width > 0); }
public void CanGetEmoticonById() { var client = new HipchatClient(); var emoticons = client.GetAllEmoticons(); var firstEmoticon = emoticons.Items[0]; var emoticonById = client.GetEmoticon(firstEmoticon.Id); Assert.Equal(firstEmoticon.Id, emoticonById.Id); Assert.True(emoticonById.Height > 0); Assert.True(emoticonById.Width > 0); }