public void GetDrives_WithNoCredentials_ReturnsNotNull()
        {
            var credentials = _fixture.ShareCredentials;

            var smbDriveInfoFactory = new SMBDriveInfoFactory(_fileSystem, _fixture.SMBCredentialProvider, _fixture.SMBClientFactory, 65536);

            var shares = smbDriveInfoFactory.GetDrives();

            Assert.NotNull(shares);
        }
        public void GetDrives_WithCredentials_ReturnsNotNull()
        {
            var credentials = _fixture.ShareCredentials;

            _fixture.SMBCredentialProvider.AddSMBCredential(new SMBCredential(credentials.Domain, credentials.Username, credentials.Password, _fixture.RootPath, _fixture.SMBCredentialProvider));

            var smbDriveInfoFactory = new SMBDriveInfoFactory(_fileSystem, _fixture.SMBCredentialProvider, _fixture.SMBClientFactory, 65536);

            var shares = smbDriveInfoFactory.GetDrives();

            Assert.NotNull(shares);
        }
        public void FromDriveName_WithDirectory_ReturnsNotNull()
        {
            var credentials = _fixture.ShareCredentials;
            var directory   = _fileSystem.Path.Combine(_fixture.RootPath, _fixture.Directories.First());

            _fixture.SMBCredentialProvider.AddSMBCredential(new SMBCredential(credentials.Domain, credentials.Username, credentials.Password, directory, _fixture.SMBCredentialProvider));

            var smbDriveInfoFactory = new SMBDriveInfoFactory(_fileSystem, _fixture.SMBCredentialProvider, _fixture.SMBClientFactory, 65536);

            var shareInfo = smbDriveInfoFactory.FromDriveName(directory);

            Assert.NotNull(shareInfo);
        }