Example #1
0
 public void GetPresetsUuids_Without_Authentication_Throws_AuphonicException()
 {
     Assert.That(() => _auphonic.GetPresetsUuids(), Throws
                 .InstanceOf <AuphonicException>()
                 .And.Property("ErrorCode").EqualTo("")
                 .And.Property("ErrorMessage").EqualTo(MessageNoCredentials));
 }
        public void Invoke_GetPresetsUuids_Returns_Result()
        {
            HasAccessToken();

            List <string> presetUuids = null;

            Assert.That(() => presetUuids = _auphonic.GetPresetsUuids(), Throws.Nothing);
            Assert.That(presetUuids, Is.Not.Null);

            if (!String.IsNullOrWhiteSpace(_preset?.Uuid))
            {
                Assert.That(presetUuids.Contains(_preset.Uuid), Is.True);
            }
        }