public void GetPresets_Without_Authentication_Throws_AuphonicException() { Assert.That(() => _auphonic.GetPresets(), Throws .InstanceOf <AuphonicException>() .And.Property("ErrorCode").EqualTo("") .And.Property("ErrorMessage").EqualTo(MessageNoCredentials)); }
public void Invoke_GetPresets_Returns_Result() { HasAccessToken(); List <Preset> presets = null; Assert.That(() => presets = _auphonic.GetPresets(), Throws.Nothing); Assert.That(presets, Is.Not.Null); if (!String.IsNullOrWhiteSpace(_preset?.Uuid)) { Assert.That(presets.Any(o => o.Uuid == _preset.Uuid), Is.True); } }