Ejemplo n.º 1
0
        public void TestClean()
        {
            byte[]   output = new byte[] { 11, 12 };
            byte[]   error  = new byte[] { 13, 14 };
            string[] expectedCachedCommand = { "git command" };

            GitCommandCache.Add("git command", output, error);
            Assert.IsTrue(expectedCachedCommand.SequenceEqual(GitCommandCache.CachedCommands()));
            GitCommandCache.CleanCache();
            Assert.IsFalse(GitCommandCache.CachedCommands().Any());
        }
Ejemplo n.º 2
0
 public void Cleanup()
 {
     GitCommandCache.CleanCache();
 }