public void VRMetadataTest() { var provider = new SteamMetadataProvider( new SteamLibrary(PlayniteTests.GetTestingApi().Object, null)); var data = provider.GetMetadata(new Game() { GameId = "378860" }); Assert.IsTrue(data.GameInfo.Features.Contains("VR")); }
public void StandardDownloadTest() { var provider = new SteamMetadataProvider( new SteamLibrary(PlayniteTests.GetTestingApi().Object, null)); var data = provider.GetMetadata(new Game() { GameId = "578080" }); Assert.IsNotNull(data.GameInfo); Assert.IsNotNull(data.Icon); Assert.IsNotNull(data.CoverImage); Assert.IsNotNull(data.GameInfo.ReleaseDate); Assert.IsNotNull(data.BackgroundImage); Assert.IsFalse(string.IsNullOrEmpty(data.GameInfo.Description)); CollectionAssert.IsNotEmpty(data.GameInfo.Publishers); CollectionAssert.IsNotEmpty(data.GameInfo.Developers); CollectionAssert.IsNotEmpty(data.GameInfo.Features); CollectionAssert.IsNotEmpty(data.GameInfo.Genres); CollectionAssert.IsNotEmpty(data.GameInfo.Links); CollectionAssert.IsNotEmpty(data.GameInfo.Publishers); }
public static SteamLibrary CreateLibrary() { return(new SteamLibrary(PlayniteTests.GetTestingApi().Object, null)); }
public static OriginLibrary CreateLibrary() { return(new OriginLibrary(PlayniteTests.GetTestingApi().Object)); }
public static BethesdaLibrary CreateLibrary() { return(new BethesdaLibrary(PlayniteTests.GetTestingApi().Object)); }
private IgdbMetadataPlugin GetTestPlugin() { return(new IgdbMetadataPlugin( PlayniteTests.GetTestingApi().Object, new IgdbServiceClient(Version.Parse("1.0.0.0"), "http://localhost:5000/"))); }
public static TwitchLibrary CreateLibrary() { return(new TwitchLibrary(PlayniteTests.GetTestingApi().Object)); }
public static HumbleLibrary CreateLibrary() { return(new HumbleLibrary(PlayniteTests.GetTestingApi().Object)); }
public static BattleNetLibrary CreateLibrary() { return(new BattleNetLibrary(PlayniteTests.GetTestingApi().Object)); }
public static ExoDosLibrary CreateLibrary() { return(new ExoDosLibrary(PlayniteTests.GetTestingApi().Object)); }