コード例 #1
0
        public async Task ShouldFailIfFileDoesNotExist()
        {
            var loadSoundList = new LoadSoundlist();

            var result = await loadSoundList.Perform("test.spl");

            result.IsSuccessful.Should().BeFalse();
        }
コード例 #2
0
        public async Task ShouldLoadSoundList()
        {
            var loadSoundList = new LoadSoundlist();

            var result = await loadSoundList.Perform("Soundlist.spl");

            result.IsSuccessful.Should().BeTrue();
        }
コード例 #3
0
        /// <summary>
        ///     Loads a .spl Soundlist into Soundpad
        /// </summary>
        /// <returns></returns>
        public async Task <NoContentResponse> LoadSoundlist(string path)
        {
            var loadSoundlist = new LoadSoundlist();

            return(await loadSoundlist.Perform(path));
        }