public void ParseTest1()
        {
            var target = new FileComponent(new Soba(), "");

            Assert.Throws <IncorrectSyntaxException>(() =>
                                                     target.Eval("#[File get(\"file\")]")
                                                     );

            Assert.Throws <IncorrectSyntaxException>(() =>
                                                     target.Eval("File get(\"file\")")
                                                     );
        }
        public void StCallParseTest1()
        {
            var target = new FileComponent(new Soba(), "");

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File call(file)]")
                                             );

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File out(file)]")
                                             );
        }
        public void StDeleteFilesTest1()
        {
            var target = new FileComponent(new Soba(), "");

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File delete.files(\"file\")]")
                                             );

            Assert.Throws <PMArgException>(() =>
                                           target.Eval("[File delete.files({\"file\", false})]")
                                           );

            Assert.Throws <PMArgException>(() =>
                                           target.Eval("[File delete.files({\"file\"}, {true})]")
                                           );
        }
        public void StRemoteTest2()
        {
            var target = new FileComponent(new Soba(), "");

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File remote.download()]")
                                             );

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File remote.download(\"addr\")]")
                                             );

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File remote.download(\"addr\", \"file\", \"user\")]")
                                             );
        }
        public void StDeleteTest1()
        {
            var target = new FileComponent(new Soba(), "");

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[File delete]")
                                                   );

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[File delete.files]")
                                                   );

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[File delete.directory]")
                                                   );

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[File delete.notRalNode]")
                                                   );
        }
        public void StCopyDirectoryTest1()
        {
            var target = new FileComponent(new Soba(), "");

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File copy.directory()]")
                                             );

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File copy.directory(false)]")
                                             );

            Assert.Throws <ArgumentException>(() =>
                                              target.Eval("[File copy.directory(\" \", \"dest\", false)]")
                                              );

            Assert.Throws <ArgumentException>(() =>
                                              target.Eval("[File copy.directory(\"src\", \" \", false)]")
                                              );
        }
        public void StCopyTest1()
        {
            var target = new FileComponent(new Soba(), "");

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[File copy]")
                                                   );

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[File copy.file]")
                                                   );

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[File copy.directory]")
                                                   );

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[File copy.notRalNode]")
                                                   );
        }
        public void StRemoteTest1()
        {
            var target = new FileComponent(new Soba(), "");

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[File remote]")
                                                   );

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[File remote.download]")
                                                   );

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[File remote.notRealNode]")
                                                   );

            Assert.Throws <NotSupportedOperationException>(() =>
                                                           target.Eval("[File remote.download(\"addr\", \"file\").notRealNode]")
                                                           );
        }
        public void StWriteParseTest5()
        {
            var target = new FileComponent(new Soba(), "");

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File write(\"file\", true):data]")
                                             );

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File write(\"file\", true, true):data]")
                                             );

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File write(\"file\", \"true\", \"true\", \"utf-8\"):data]")
                                             );

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File append(\"file\", true, true, \"utf-8\"):data]")
                                             );

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File appendLine(\"file\", true, true, \"utf-8\"):data]")
                                             );

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[File writeLine(\"file\", true, true, \"utf-8\"):data]")
                                             );
        }