Exemplo n.º 1
0
        public void Blame_BlameBasic()
        {
            SvnSandBox sbox = new SvnSandBox(this);

            sbox.Create(SandBoxRepository.AnkhSvnCases);
            string WcPath = sbox.Wc;

            string path  = Path.Combine(WcPath, "Form.cs");
            string blame = this.RunCommand("svn", "blame -v " + path);

            Blame[] cmdline = this.ParseCommandLineBlame(blame);

            SvnBlameArgs a = new SvnBlameArgs();

            Assert.That(this.Client.Blame(path, a, this.Receiver));

            Assert.That(this.blames.Count, Is.EqualTo(cmdline.Length));
            for (int i = 0; i < cmdline.Length; i++)
            {
                Blame.CheckEqual(cmdline[i], (Blame)this.blames[i]);
            }
        }