Пример #1
0
        [Ignore] //bug ID : 446714
        public void ExecuteFile_InvalidPath()
        {
            ScriptRuntime runTime = CreateRuntime();

            // BUG : An invalid path throws an 'Microsoft.Scripting.SyntaxErrorException'
            string[] paths = StandardTestPaths.CreateBadPathCombinations(Path.GetTempPath());
            foreach (string p in paths)
            {
                runTime.ExecuteFile(p + "foo.py");
            }
        }
Пример #2
0
        /// <summary>
        ///  Test the StringPathContainer class
        /// </summary>
        /// <param name="args"></param>
        static void _Main(string[] args)
        {
            // Quick example using all the string path contents
            StandardTestPaths TestPaths = new StandardTestPaths();

            string[] paths = StandardTestPaths.AllPaths;

            foreach (string testp in paths)
            {
                Console.WriteLine("The path {0}", testp);
            }
        }
Пример #3
0
        /// <summary>
        ///  Test the StringPathContainer class
        /// </summary>
        /// <param name="args"></param>
        static void _Main(string[] args)
        {
            // Quick example using all the string path contents
            StandardTestPaths TestPaths = new StandardTestPaths();
            string[] paths = StandardTestPaths.AllPaths;

            foreach (string testp in paths) {
                Console.WriteLine("The path {0}", testp);
            }
        }