public void ToChannelInfoTest() { var channelParser = new ChannelParser(); channelParser.LoadChannelSettings(); var channelInfo = channelParser.ToChannelInfo("207998375251935232"); Assert.IsNotNull(channelInfo); Assert.IsTrue(channelInfo.isValid); Assert.AreEqual("PokeMobBot - a Pokémon Go Bot", channelInfo.server); Assert.AreEqual("coordsbots",channelInfo.channel); }
public void InvalidToChannelInfoTest() { var channelParser = new ChannelParser(); channelParser.LoadChannelSettings(); var channelInfo = channelParser.ToChannelInfo("207998375251935232ddqsd"); Assert.IsNotNull(channelInfo); Assert.IsFalse(channelInfo.isValid); Assert.AreEqual("Unknown", channelInfo.server); Assert.AreEqual("Unknown", channelInfo.channel); }