private string GetTargetDir()
 {
     return(_fileSystem.Path.Combine(
                _fileSystem.Path.GetTempPath(),
                ApplicationName,
                "SilentHunter.Controllers",
                EnvironmentUtilities.GetCurrentTargetFramework()
                ));
 }
Ejemplo n.º 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
        }