Exemplo n.º 1
0
 public void ReplaceBracketedClassNamesWithPattern_ClassDoesNotExist_ThrowsException()
 {
     _prj.SearchClasses.Add(new SearchClass {
         Name = "dummy1", Type = SearchClassType.Phones
     });
     _prj.SearchClasses.Add(new SearchClass {
         Name = "dummy2", Type = SearchClassType.Phones
     });
     Assert.Throws <NullReferenceException>(() => _parser.ReplaceBracketedClassNamesWithPatterns("<not there>"));
 }