private void Test(int length, FillArrayType type) { // setup: var data = new int[length]; Utils.FillArray(data, type); // when: var gpuResult = gpuScan.Scan(data); // then: Assert.AreEqual(gpuResult.Length, length); var cpuResult = cpuScan.Scan(data); for (var i = 0; i < length; ++i) { Assert.AreEqual(gpuResult[i], cpuResult[i], "not eq at=" + i); } }
public void Scan(Document d) { scanner.Scan(d); }
/// <summary> /// ScanProduct /// </summary> /// <param name="productCode"></param> /// <returns>OrderItem</returns> public OrderItem ScanProduct(char productCode) { return(_scanService.Scan(GetAvailableProduct(), productCode)); }
public void Scan(IEnumerable <Item> items) { _scanner.Scan(items); }
public void Scan() { _scanner.Scan(); }
public void Scan() { scan.Scan(); }
public void Scan(Document document) { scan.Scan(document); }