PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/Mercurial.Net.Tests/SingleRepositoryTestsBase.cs

#
C# | 28 lines | 24 code | 4 blank | 0 comment | 0 complexity | ce3ac1c134cfc0514ed3dc78ca249a6a MD5 | raw file
 1using NUnit.Framework;
 2
 3namespace Mercurial.Tests
 4{
 5    public abstract class SingleRepositoryTestsBase : RepositoryTestsBase
 6    {
 7        protected Repository Repo
 8        {
 9            get;
10            private set;
11        }
12
13        [SetUp]
14        public virtual void SetUp()
15        {
16            Repo = GetRepository();
17        }
18
19        [TearDown]
20        public override void TearDown()
21        {
22            Repo.Dispose();
23            Repo = null;
24
25            base.TearDown();
26        }
27    }
28}