Ejemplo n.º 1
0
        public async void Service_WithoutConnection_MustReturnNull()
        {
            var connection = ConnectionBuilder.Create().WithCheckConnectionValue(false).Build();
            var service    = new LocalDriveService(connection);

            DirectoryVM directoryVM = null;
            var         value       = await service.GetDirectories(directoryVM);

            Assert.Null(value);
        }
        public async void Download_WithoutConnection_MustReturnNull()
        {
            var connection = ConnectionBuilder.Create().WithCheckConnectionValue(false).Build();
            var service    = new LocalDriveService(connection);

            var fileID = (string)null;
            var value  = await service.Download(fileID);

            Assert.Null(value);
        }