Ejemplo n.º 1
0
        public void Should_get_json_analysis_for_track()
        {
            var highLevelProperties = new List <string>
            {
                "danceability",
                "mood",
                "gender"
            };

            var lowLevelProperties = new List <string>
            {
                "barkbands",
                "dynamic_complexity",
                "chords_key"
            };

            var llJson = new AcousticbrainzExchange().GetAnalysisOf(_testMbid).LowLevelJson;
            var hlJson = new AcousticbrainzExchange().GetAnalysisOf(_testMbid).HighLevelJson;

            Assert.That(llJson.ContainsAll(lowLevelProperties));
            Assert.That(hlJson.ContainsAll(highLevelProperties));
        }
Ejemplo n.º 2
0
        public void Should_get_analysis_object_for_track()
        {
            var analysis = new AcousticbrainzExchange().GetAnalysisOf(_testMbid).Deserialize();

            Assert.That(analysis.highlevel, Is.Not.Null);
        }