ApplicationSettingsTests.TestHelpers.GetAbsolutePathToTestAssembly C# (CSharp) Méthode

GetAbsolutePathToTestAssembly() private static méthode

private static GetAbsolutePathToTestAssembly ( ) : string
Résultat string
        private static string GetAbsolutePathToTestAssembly()
        {
            var assembly = Assembly.GetAssembly(typeof(TestHelpers));
            var uri = new Uri(assembly.CodeBase);
            return System.IO.Path.GetDirectoryName(uri.AbsolutePath);
        }