diff --git a/src/Renci.SshNet.Tests/Common/TestBase.cs b/src/Renci.SshNet.Tests/Common/TestBase.cs index 345fd1bd..4ae86fb4 100644 --- a/src/Renci.SshNet.Tests/Common/TestBase.cs +++ b/src/Renci.SshNet.Tests/Common/TestBase.cs @@ -8,17 +8,18 @@ namespace Renci.SshNet.Tests.Common [TestClass] public abstract class TestBase { - private static Assembly _executingAssembly = Assembly.GetExecutingAssembly(); - [TestInitialize()] + private static readonly Assembly ExecutingAssembly = Assembly.GetExecutingAssembly(); + + [TestInitialize] public void Init() { - this.OnInit(); + OnInit(); } - [TestCleanup()] + [TestCleanup] public void Cleanup() { - this.OnCleanup(); + OnCleanup(); } protected virtual void OnInit() @@ -50,7 +51,7 @@ namespace Renci.SshNet.Tests.Common protected Stream GetData(string name) { - return _executingAssembly.GetManifestResourceStream(string.Format("Renci.SshNet.Tests.Data.{0}", name)); + return ExecutingAssembly.GetManifestResourceStream(string.Format("Renci.SshNet.Tests.Data.{0}", name)); } } } \ No newline at end of file diff --git a/src/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj b/src/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj index aee9c21b..d968dd27 100644 --- a/src/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj +++ b/src/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj @@ -226,6 +226,7 @@ + @@ -384,6 +385,7 @@ +