Skip to content

Instantly share code, notes, and snippets.

@MichalGrzegorzak
Created May 25, 2023 12:09
Show Gist options
  • Save MichalGrzegorzak/00acc901a6d46951dc3e06735a6d6ce3 to your computer and use it in GitHub Desktop.
Save MichalGrzegorzak/00acc901a6d46951dc3e06735a6d6ce3 to your computer and use it in GitHub Desktop.
MsUnit before and after test
[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