private static SkillTreeUrlData CreateSut(string url)
 {
     return(SkillTreeUrlDecoders.TryDecode(url));
 }
Ejemplo n.º 2
0
        public void GetUrlDeserializerReturnsNullWhenNoFactories()
        {
            var data = SkillTreeUrlDecoders.TryDecode("some.url");

            Assert.IsFalse(data.IsValid);
        }
Ejemplo n.º 3
0
        public void SkilLTreeUrlDecodersReturnValidDataWhenUrlIsSupported()
        {
            var data = SkillTreeUrlDecoders.TryDecode("https://www.pathofexile.com/passive-skill-tree/AAAABgMAAAAA");

            Assert.IsTrue(data.IsValid);
        }
Ejemplo n.º 4
0
        public void SkilLTreeUrlDecodersReturnValidDataWhenUrlIsSupportedFullscreenWithVersion()
        {
            var data = SkillTreeUrlDecoders.TryDecode("https://www.pathofexile.com/fullscreen-passive-skill-tree/3.16.0/AAAABgMAAAAA");

            Assert.IsTrue(data.IsValid);
        }
Ejemplo n.º 5
0
        public void SkilLTreeUrlDecodersReturnValidDataWhenUrlIsNotSupported()
        {
            var data = SkillTreeUrlDecoders.TryDecode("https://example.com/AAAABgMAAAAA");

            Assert.IsTrue(data.IsValid);
        }