public async Task GetLikedSongIdsByUserIdAsyncTest_UserIdNoLikedSongs_EmptyArray() { // Arrange var songRepoMock = new Mock <ISongRepository>(); songRepoMock.Setup(mock => mock.GetLikedSongIdsByUserIdAsync(1)) .ReturnsAsync(new int[] { }) .Verifiable(); var songCollection = new SongCollection(songRepoMock.Object, _dependencyMapper); // Act var likedSongs = (await songCollection.GetLikedSongIdsByUserIdAsync(1)).ToArray(); // Assert songRepoMock.Verify(); Assert.AreEqual(0, likedSongs.Length); }