public void DoAvalancheTestForFarm() { FarmHashStrategy sut = new FarmHashStrategy(new FarmHash0To16BytesStrategy(), new FarmHash17To32BytesStrategy(), new FarmHash33To64BytesStrategy(), new FarmHashOver64BytesStrategy()); var numOutputBytes = sizeof(ulong); var tester = new AvalancheTester <ulong>(sut, new ULongBitOperator(), numInputBytes, numOutputBytes); var avalancheResult = tester.PerformAvalancheTest(sampleSize); ConfirmResults(numInputBytes, numOutputBytes, avalancheResult); }
public void Initialize() { _sut = new FarmHashStrategy(new FarmHash0To16BytesStrategy(), new FarmHash17To32BytesStrategy(), new FarmHash33To64BytesStrategy(), new FarmHashOver64BytesStrategy()); }