public void BuildTooLarge()
 {
     Assert.Throws <ArgumentException> (() => GitInfoHelper.Initialize(new Version(1, 10, 100)));
 }
 public void MajorTooLarge()
 {
     Assert.Throws <ArgumentException> (() => GitInfoHelper.Initialize(new Version(10, 2, 3)));
 }
 public void BuildMissing()
 {
     Assert.Throws <ArgumentException> (() => GitInfoHelper.Initialize(new Version(1, 2)));
 }
 public void ValidVersionNumber()
 {
     GitInfoHelper.Initialize(new Version(1, 2, 3));
     Assert.AreEqual(GitInfoHelper.ClientIdentifier + "1203", GitInfoHelper.ClientVersion);
     Assert.AreEqual(GitInfoHelper.DhtClientVersion, GitInfoHelper.ClientVersion);
 }