public void ShouldConvertCustomIStickerMessageToStickerMessage() { var message = new TestStickerMessage(); var stickerMessage = StickerMessage.Convert(message); Assert.AreNotEqual(message, stickerMessage); Assert.AreEqual("PackageId", stickerMessage.PackageId); Assert.AreEqual("StickerId", stickerMessage.StickerId); }
public void Convert_CustomIStickerMessage_ConvertedToTextMessage() { TestStickerMessage message = new TestStickerMessage(); ISendMessage[] messages = MessageConverter.Convert(new ISendMessage[] { message }); Assert.AreEqual(1, messages.Length); Assert.AreNotEqual(message, messages[0]); StickerMessage textMessage = messages[0] as StickerMessage; Assert.AreEqual("PackageId", textMessage.PackageId); Assert.AreEqual("StickerId", textMessage.StickerId); }
public void ShouldConvertCustomIStickerMessageToStickerMessage() { var message = new TestStickerMessage(); var messages = MessageConverter.Convert(new ISendMessage[] { message }); Assert.AreEqual(1, messages.Length); Assert.AreNotEqual(message, messages[0]); var textMessage = messages[0] as StickerMessage; Assert.AreEqual("PackageId", textMessage.PackageId); Assert.AreEqual("StickerId", textMessage.StickerId); }