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