public void AddFileSystemQueryStorage_2_Services_Is_Null() { // arrange // act Action action = () => FileSystemQueryStorageServiceCollectionExtensions .AddFileSystemQueryStorage(null); Assert.Throws <ArgumentNullException>(action); }
public void AddFileSystemQueryStorage_1_Directory_Is_Null() { // arrange var services = new ServiceCollection(); // act Action action = () => FileSystemQueryStorageServiceCollectionExtensions .AddFileSystemQueryStorage(services, null); // assert Assert.Throws <ArgumentNullException>(action); }
public void AddFileSystemQueryStorage_2_Services() { // arrange var services = new ServiceCollection(); // act FileSystemQueryStorageServiceCollectionExtensions .AddFileSystemQueryStorage(services); // assert services.ToDictionary( k => k.ServiceType.GetTypeName(), v => v.ImplementationType?.GetTypeName()) .MatchSnapshot(); }