public void ParseWrongSubject2() { MyTicket tkt = new MyTicket(new Ticket()); tkt.ComplexSubject = @"123123: test"; tkt.ParseComplexSubject(); Assert.AreEqual(tkt.Number, null); }
public void ParseTQuestion() { MyTicket tkt = new MyTicket(new Ticket()); tkt.ComplexSubject = @"T123144: test"; tkt.ParseComplexSubject(); Assert.AreEqual(tkt.Number, "T123144"); }
public void ParseWrongSubject0() { MyTicket tkt = new MyTicket(new Ticket()); tkt.ComplexSubject = @"E1234:test"; tkt.ParseComplexSubject(); Assert.AreEqual(tkt.Number, "E1234"); }
public void ParseQuestion6() { MyTicket tkt = new MyTicket(new Ticket()); tkt.ComplexSubject = @"Q123123: test"; tkt.ParseComplexSubject(); Assert.AreEqual(tkt.Number, "Q123123"); }