public void Dump_DumpDb() { SvnSandBox sbox = new SvnSandBox(this); string repos = sbox.GetTempDir(); using (SvnRepositoryClient cl = new SvnRepositoryClient()) { SvnCreateRepositoryArgs ra = new SvnCreateRepositoryArgs(); ra.RepositoryType = SvnRepositoryFileSystem.BerkeleyDB; ra.RepositoryCompatibility = SvnRepositoryCompatibility.Subversion10; cl.CreateRepository(repos, ra); string file = GetTempFile(); using(FileStream s = File.Create(file)) { SvnDumpRepositoryArgs da = new SvnDumpRepositoryArgs(); da.Start = new SvnRevision(0); da.End = new SvnRevision(SvnRevisionType.Head); cl.DumpRepository(repos, s, da); } Assert.That(new FileInfo(file).Length, Is.GreaterThan(12)); } }
public void Dump_DumpDb() { SvnSandBox sbox = new SvnSandBox(this); string repos = sbox.GetTempDir(); using (SvnRepositoryClient cl = new SvnRepositoryClient()) { SvnCreateRepositoryArgs ra = new SvnCreateRepositoryArgs(); ra.RepositoryType = SvnRepositoryFileSystem.BerkeleyDB; ra.RepositoryCompatibility = SvnRepositoryCompatibility.Subversion10; cl.CreateRepository(repos, ra); string file = GetTempFile(); using (FileStream s = File.Create(file)) { SvnDumpRepositoryArgs da = new SvnDumpRepositoryArgs(); da.Start = new SvnRevision(0); da.End = new SvnRevision(SvnRevisionType.Head); cl.DumpRepository(repos, s, da); } Assert.That(new FileInfo(file).Length, Is.GreaterThan(12)); } }