public override void Reset() { foreach (var directory in testDirectories) { try { sutProtocolController.DeleteDirectory(Smb2Utility.GetShareName(directory), Smb2Utility.GetFileName(directory)); } catch { } } testDirectories.Clear(); foreach (var fileName in testFiles) { try { sutProtocolController.DeleteFile(Smb2Utility.GetShareName(fileName), Smb2Utility.GetFileName(fileName)); } catch { } } testFiles.Clear(); base.Reset(); }
protected override void TestCleanup() { foreach (string fileName in fileNameList) { try { sutProtocolControlAdapter.DeleteFile(fileName); } catch { } } try { smbdAdapter.DisconnectRdma(); } catch { } smbdAdapter = null; base.TestCleanup(); }
protected override void TestCleanup() { foreach (var directory in testDirectories) { try { sutProtocolController.DeleteDirectory(Smb2Utility.GetShareName(directory), Smb2Utility.GetFileName(directory)); } catch { } } foreach (var fileName in testFiles) { try { sutProtocolController.DeleteFile(Smb2Utility.GetShareName(fileName), Smb2Utility.GetFileName(fileName)); } catch { } } base.TestCleanup(); }
protected override void TestCleanup() { try { sutProtocolControlAdapter.DeleteFile(fileName); } catch { } base.TestCleanup(); }