Esempio n. 1
0
 public void TearDown()
 {
     _inputFile            = null;
     _dataReader           = null;
     _byteStreamDataReader = null;
     _byteStreamParser     = null;
     _header              = null;
     _childHeader         = null;
     _grandChildHeader    = null;
     _mockAttributeHeader = null;
 }
Esempio n. 2
0
        public void SetUp()
        {
            _inputFile = MockRepository.GenerateStub <IInputFile>();
            _inputFile.Stub(x => x.Name).Return(TestFileName);
            _inputFile.Stub(x => x.Length).Return(TestFileLength);

            _dataReader           = new MockDataReader(MockData, _inputFile);
            _byteStreamDataReader = new ByteStreamDataReader(_dataReader);
            _byteStreamParser     = new MockByteStreamParser(_byteStreamDataReader);
            _header              = new MockHeader(Enumerable.Repeat(_detector, 1), MockHeaderName.Root);
            _childHeader         = new MockHeader(_header, MockHeaderName.MockHeaderTypeTwo);
            _grandChildHeader    = new MockSubHeader(_childHeader);
            _mockAttributeHeader = new MockAttributeHeader(_grandChildHeader);
        }