public void PlayListTrackGetAll() { // Act var playListTracks = _repo.GetAll(); // Assert Assert.Single(playListTracks); }
public void DotMemoryUnitTest() { var repo = new PlaylistTrackRepository(); repo.GetAll(); dotMemory.Check(memory => Assert.Equal(1, memory.GetObjects(where => where.Type.Is <PlaylistTrack>()).ObjectsCount)); GC.KeepAlive(repo); // prevent objects from GC if this is implied by test logic }