Exemplo n.º 1
0
        private void TestValid(string issueId, string comment, string seperator = ": ")
        {
            var entry = WorkEntry.Create(GetEntry($"{issueId}{seperator}{comment}"));

            Assert.IsNotNull(entry);
            Assert.AreEqual(issueId, entry.IssueId);
            Assert.AreEqual(comment, entry.Comment);
        }
Exemplo n.º 2
0
 public void Create_NoDesc()
 {
     Assert.IsNull(WorkEntry.Create(GetEntry(null)));
 }
Exemplo n.º 3
0
 public void Create_NoDash()
 {
     Assert.IsNull(WorkEntry.Create(GetEntry("P12: Foo")));
 }
Exemplo n.º 4
0
 public void Create_NoNumberWithDesc()
 {
     Assert.IsNull(WorkEntry.Create(GetEntry("P- Hello")));
 }
Exemplo n.º 5
0
 public void Create_NoNumber()
 {
     Assert.IsNull(WorkEntry.Create(GetEntry("P-")));
 }
Exemplo n.º 6
0
 public void Create_LowerCaseLetterProj()
 {
     Assert.IsNull(WorkEntry.Create(GetEntry("p-1")));
 }
Exemplo n.º 7
0
 public void Create_NoLetterProj()
 {
     Assert.IsNull(WorkEntry.Create(GetEntry("-1")));
 }