Ejemplo n.º 1
0
        public virtual void TestClean()
        {
            // create status
            StatusCommand        command = git.Status();
            Status               status  = command.Call();
            ICollection <string> files   = status.GetUntracked();

            NUnit.Framework.Assert.IsTrue(files.Count > 0);
            // run clean
            ICollection <string> cleanedFiles = git.Clean().Call();

            status = git.Status().Call();
            files  = status.GetUntracked();
            NUnit.Framework.Assert.AreEqual(0, files.Count);
            NUnit.Framework.Assert.IsTrue(cleanedFiles.Contains("File2.txt"));
            NUnit.Framework.Assert.IsTrue(cleanedFiles.Contains("File3.txt"));
        }