Пример #1
0
        public void CannotDeleteIndexOrPacks()
        {
            GVFltCallbacks.DoesPathAllowDelete(string.Empty).ShouldEqual(true);

            GVFltCallbacks.DoesPathAllowDelete(@".git\index").ShouldEqual(false);
            GVFltCallbacks.DoesPathAllowDelete(@".git\INDEX").ShouldEqual(false);

            GVFltCallbacks.DoesPathAllowDelete(@".git\index.lock").ShouldEqual(true);
            GVFltCallbacks.DoesPathAllowDelete(@".git\INDEX.lock").ShouldEqual(true);
            GVFltCallbacks.DoesPathAllowDelete(@".git\objects\pack").ShouldEqual(true);
            GVFltCallbacks.DoesPathAllowDelete(@".git\objects\pack-temp").ShouldEqual(true);
            GVFltCallbacks.DoesPathAllowDelete(@".git\objects\pack\pack-1e88df2a4e234c82858cfe182070645fb96d6131.pack").ShouldEqual(true);
            GVFltCallbacks.DoesPathAllowDelete(@".git\objects\pack\pack-1e88df2a4e234c82858cfe182070645fb96d6131.idx").ShouldEqual(true);
        }