private string GetTargetDir()
 {
     return(_fileSystem.Path.Combine(
                _fileSystem.Path.GetTempPath(),
                ApplicationName,
                "SilentHunter.Controllers",
                EnvironmentUtilities.GetCurrentTargetFramework()
                ));
 }
예제 #2
0
        public void When_requesting_target_framework_should_return_correct_framework_and_version()
        {
            // Act
            string targetFramework = EnvironmentUtilities.GetCurrentTargetFramework();

            // Assert
#if NETFRAMEWORK
            targetFramework.Should().Be("net461");
#else
            targetFramework.Should().Be("netcoreapp2.2");
#endif
        }