private static SkillTreeUrlData CreateSut(string url) { return(SkillTreeUrlDecoders.TryDecode(url)); }
public void GetUrlDeserializerReturnsNullWhenNoFactories() { var data = SkillTreeUrlDecoders.TryDecode("some.url"); Assert.IsFalse(data.IsValid); }
public void SkilLTreeUrlDecodersReturnValidDataWhenUrlIsSupported() { var data = SkillTreeUrlDecoders.TryDecode("https://www.pathofexile.com/passive-skill-tree/AAAABgMAAAAA"); Assert.IsTrue(data.IsValid); }
public void SkilLTreeUrlDecodersReturnValidDataWhenUrlIsSupportedFullscreenWithVersion() { var data = SkillTreeUrlDecoders.TryDecode("https://www.pathofexile.com/fullscreen-passive-skill-tree/3.16.0/AAAABgMAAAAA"); Assert.IsTrue(data.IsValid); }
public void SkilLTreeUrlDecodersReturnValidDataWhenUrlIsNotSupported() { var data = SkillTreeUrlDecoders.TryDecode("https://example.com/AAAABgMAAAAA"); Assert.IsTrue(data.IsValid); }