public async Task GetItemsAsync_ReturnsEmptyEnumerableIfNoItems() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var groups = await test.Reader.GetItemsAsync("other", CancellationToken.None); Assert.Empty(groups); } }
public async Task IsServiceableAsync_ReturnsFalseIfNotServiceable() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var isServiceable = await test.Reader.IsServiceableAsync(CancellationToken.None); Assert.False(isServiceable); } }
public void GetItems_ReturnsEmptyEnumerableIfNoItems() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var groups = test.Reader.GetItems("other"); Assert.Empty(groups); } }
public async Task GetMinClientVersionAsync_ReturnsNullIfNoMinClientVersion() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var version = await test.Reader.GetMinClientVersionAsync(CancellationToken.None); Assert.Null(version); } }
public void IsServiceable_ReturnsFalseIfNotServiceable() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var isServiceable = test.Reader.IsServiceable(); Assert.False(isServiceable); } }
public async Task GetFilesAsync_WithFolder_ReturnsEmptyEnumerableIfNoFiles() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var files = await test.Reader.GetFilesAsync("lib", CancellationToken.None); Assert.Empty(files); } }
public void GetMinClientVersion_ReturnsNullIfNoMinClientVersion() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var version = test.Reader.GetMinClientVersion(); Assert.Null(version); } }
public void GetFiles_WithFolder_ReturnsEmptyEnumerableIfNoFiles() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var files = test.Reader.GetFiles("lib"); Assert.Empty(files); } }
public async Task GetPackageTypesAsync_ReturnsEmptyEnumerableIfNoPackageTypes() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var packageTypes = await test.Reader.GetPackageTypesAsync(CancellationToken.None); Assert.Empty(packageTypes); } }
public void GetPackageTypes_ReturnsEmptyEnumerableIfNoPackageTypes() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var packageTypes = test.Reader.GetPackageTypes(); Assert.Empty(packageTypes); } }
public async Task GetDevelopmentDependencyAsync_ReturnsFalseIfNotDevelopmentDependency() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var isDevelopmentDependency = await test.Reader.GetDevelopmentDependencyAsync(CancellationToken.None); Assert.False(isDevelopmentDependency); } }
public void GetDevelopmentDependency_ReturnsFalseIfNotDevelopmentDependency() { using (var test = PackageReaderTest.Create(TestPackagesCore.GetPackageCoreAndContentReaderMinimalTestPackage())) { var isDevelopmentDependency = test.Reader.GetDevelopmentDependency(); Assert.False(isDevelopmentDependency); } }