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);
        }
Example #3
0
 public static SteamLibrary CreateLibrary()
 {
     return(new SteamLibrary(PlayniteTests.GetTestingApi().Object, null));
 }
 public static OriginLibrary CreateLibrary()
 {
     return(new OriginLibrary(PlayniteTests.GetTestingApi().Object));
 }
Example #5
0
 public static BethesdaLibrary CreateLibrary()
 {
     return(new BethesdaLibrary(PlayniteTests.GetTestingApi().Object));
 }
Example #6
0
 private IgdbMetadataPlugin GetTestPlugin()
 {
     return(new IgdbMetadataPlugin(
                PlayniteTests.GetTestingApi().Object,
                new IgdbServiceClient(Version.Parse("1.0.0.0"), "http://localhost:5000/")));
 }
Example #7
0
 public static TwitchLibrary CreateLibrary()
 {
     return(new TwitchLibrary(PlayniteTests.GetTestingApi().Object));
 }
Example #8
0
 public static HumbleLibrary CreateLibrary()
 {
     return(new HumbleLibrary(PlayniteTests.GetTestingApi().Object));
 }
 public static BattleNetLibrary CreateLibrary()
 {
     return(new BattleNetLibrary(PlayniteTests.GetTestingApi().Object));
 }
Example #10
0
 public static ExoDosLibrary CreateLibrary()
 {
     return(new ExoDosLibrary(PlayniteTests.GetTestingApi().Object));
 }