Tests.GenerateTestComponents.getEntitasProjectDir C# (CSharp) Method

getEntitasProjectDir() static private method

static private getEntitasProjectDir ( ) : string
return string
        static string getEntitasProjectDir()
        {
            var dirInfo = new DirectoryInfo(Directory.GetCurrentDirectory());
            const string projectName = "Tests";
            while(dirInfo.Name != projectName) {
                dirInfo = dirInfo.Parent;
            }

            return dirInfo.Parent.FullName;
        }
GenerateTestComponents