示例#1
0
        public async void FileScanBatchLimit()
        {
            List <Tuple <byte[], string> > files = new List <Tuple <byte[], string> >();

            for (int i = 1; i <= 50; i++)
            {
                files.Add(new Tuple <byte[], string>(new byte[i], "test"));
            }

            ScanResult[] results = await Task.WhenAll(VirusTotal.ScanFiles(files));

            //We should be able to send as many files as we like (no limit)
            Assert.Equal(files.Count, results.Length);
        }