コード例 #1
0
    public void GetVideoFileByResolution_Uses_Lowest_Resolution_If_Not_Found()
    {
        UnityEngine.TestTools.LogAssert.Expect(LogType.Log, new Regex("Defaulting to 400p"));
        JSONNode file = video.GetVideoFileByResolution(Vimeo.Player.StreamingResolution.x360p);

        Assert.AreEqual(file["height"].Value, "400");
    }
コード例 #2
0
    public void GetVideoFileByResolution_Uses_Selected_Resolution_For_Files_Response()
    {
        UnityEngine.TestTools.LogAssert.NoUnexpectedReceived();
        video = new VimeoVideo(JSONNode.Parse(mockProductionJson));
        JSONNode file = video.GetVideoFileByResolution(Vimeo.Player.StreamingResolution.x720p_HD);

        Assert.AreEqual(file["height"].Value, "720");
    }