public void TestWriteDataBlocksFile2() { long dummyHandledBytes = 0L; IInputFile inputFile = Util.FindInputFile(_project1.GetInputFiles(), _testDataFile2); IList <IDataBlock> dataBlocks = _project1.GetDataBlocks(inputFile); Assert.AreEqual(1, dataBlocks.Count); TestFramework.WriteDetectables(dataBlocks, _testOutputFile, MockRepository.GenerateStub <IProgressReporter>(), ref dummyHandledBytes, 0L); byte[] contents = new byte[255]; Array.Copy(_fullFile2, contents, 255); Util.AssertArrayEqualsFile(contents, _testOutputFile); }