Beispiel #1
0
    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);
        }
    }
Beispiel #2
0
 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));
 }
Beispiel #4
0
 public void Scan(IEnumerable <Item> items)
 {
     _scanner.Scan(items);
 }
 public void Scan()
 {
     _scanner.Scan();
 }
Beispiel #6
0
 public void Scan()
 {
     scan.Scan();
 }
Beispiel #7
0
 public void Scan(Document document)
 {
     scan.Scan(document);
 }