예제 #1
0
        public void CanGetEmoticonByKnownShortcut()
        {
            var client             = new HipchatClient();
            var emoticonByShortcut = client.GetEmoticon("allthethings");

            Assert.True(emoticonByShortcut.Height > 0);
            Assert.True(emoticonByShortcut.Width > 0);
        }
예제 #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);
        }