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();
        }
예제 #2
0
        protected override void TestCleanup()
        {
            foreach (string fileName in fileNameList)
            {
                try
                {
                    sutProtocolControlAdapter.DeleteFile(fileName);
                }
                catch
                {
                }
            }

            try
            {
                smbdAdapter.DisconnectRdma();
            }
            catch
            {
            }

            smbdAdapter = null;

            base.TestCleanup();
        }
예제 #3
0
        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();
        }
예제 #4
0
        protected override void TestCleanup()
        {
            try
            {
                sutProtocolControlAdapter.DeleteFile(fileName);
            }
            catch
            {
            }

            base.TestCleanup();
        }