Exemple #1
0
        public void Author_WithName_ProducesCorrectRevisionSpecification()
        {
            RevSpec revSpec = RevSpec.Author("Lasse V. Karlsen <*****@*****.**>");

            string output = revSpec.ToString();

            Assert.That(output, Is.EqualTo("author('Lasse V. Karlsen <*****@*****.**>')"));
        }
Exemple #2
0
 public void Author_NullOrEmptyName_ThrowsArgumentNullException(string input)
 {
     Assert.Throws <ArgumentNullException>(() => RevSpec.Author(input));
 }