public void InitializeFile_Validate_ExpectsOk() { const string path = "xxx"; var msf = new UndisposableMemoryStreamFactory(); using (var file = new CompoundFile(path, new CompoundFile.CompoundFileOptions(), msf)) { Assert.IsTrue(file.ValidateCrc()); } var stream = msf.Stream; stream.AllowDispose = true; stream.Dispose(); }