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()); }
public void Cleanup() { GitCommandCache.CleanCache(); }