Exemple #1
0
        public void Or_WithOtherRevisions_ProducesCorrectRevisionSpecification()
        {
            RevSpec rev1   = RevSpec.Range(2, 7);
            RevSpec rev2   = RevSpec.Range(10, 14);
            RevSpec result = rev1.Or(rev2);

            Assert.That(result.ToString(), Is.EqualTo("2:7 or 10:14"));
        }
Exemple #2
0
        public void Or_WithNullRevisions_ThrowsArgumentNullException()
        {
            RevSpec rev = RevSpec.Range(2, 7);

            Assert.Throws <ArgumentNullException>(() => rev.Or(null));
        }