示例#1
0
        public void CanGetAllEmoticons()
        {
            var client = new HipchatClient();

            var emoticons = client.GetAllEmoticons();

            Assert.Equal(100, emoticons.Items.Count);
        }
示例#2
0
        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);
        }
示例#3
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);
        }