Example #1
0
        public void SetChatPhoto_DeleteChatPhoto_Returns()
        {
            Assert.That(_b.SetChatPhoto(_testChannelPost.Chat, new InputFile(_testobjects.TestPhoto, "chatphoto.jpg", "image/jpeg")));
            Assert.That(_b.DeleteChatPhoto(_testChannelPost.Chat));

            Assert.Throws <WebException>(() => _b.SetChatPhoto(_testMessage.Chat, new InputFile(_testobjects.TestPhoto, "chatphoto.jpg", "image/jpeg")));
            Assert.Throws <WebException>(() => _b.DeleteChatPhoto(_testMessage.Chat));
        }