public void TestResolve() { var resolver = new AnimeUrlResolver(); var parser = resolver.CreateParserFor(WorldArtDirectLink); Assert.IsNotNull(parser, "WorldArt parser should not be null for direct link"); Assert.AreEqual(typeof(WorldArtParser), parser.GetType(), "WorldArt parser type should be correct"); }
public void TestNotResolve() { var resolver = new AnimeUrlResolver(); var parser = resolver.CreateParserFor(NormalSearch); Assert.IsNull(parser, "Parser should be null for normal search"); }