Created
May 25, 2023 12:09
-
-
Save MichalGrzegorzak/00acc901a6d46951dc3e06735a6d6ce3 to your computer and use it in GitHub Desktop.
MsUnit before and after test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestInitialize] | |
public void BeforeEachTest() | |
{ | |
using var ftp = CreateRmsSftpService(sftpConfig.ToOptions()); | |
copiedFilePath = ftp.CopyFile(ftp.TargetFile, $"CPY_{ftp.TargetFile}"); | |
} | |
[TestCleanup] | |
public void AfterEachTest() | |
{ | |
using var ftp = CreateRmsSftpService(sftpConfig.ToOptions()); | |
try | |
{ | |
} | |
catch | |
{ | |
//just ignore | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment