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 <*****@*****.**>')")); }
public void Author_NullOrEmptyName_ThrowsArgumentNullException(string input) { Assert.Throws <ArgumentNullException>(() => RevSpec.Author(input)); }