Example #1
0
        public async Task GetSatelliteFilesAsync_ReturnsSatelliteFiles()
        {
            var files = await PackageReaderExtensions.GetSatelliteFilesAsync(
                _contentReader.Object,
                "fr",
                CancellationToken.None);

            Assert.Equal(new[] { "lib/net45/fr/a.resources.dll" }, files);
        }
Example #2
0
        public async Task GetSatelliteFilesAsync_ReturnsEmptyEnumerableIfNoMatchingFiles()
        {
            var files = await PackageReaderExtensions.GetSatelliteFilesAsync(
                _contentReader.Object,
                "kr",
                CancellationToken.None);

            Assert.Empty(files);
        }