Beispiel #1
0
 public void TestEngineerNullLocation()
 {
     // Test that we can gracefully handle situations where we want to look up an engineer location and not all known engineers have a known location.
     Engineer.AddOrUpdate(new Engineer("NoSuchEngineer", 999999, "Known", null, null));
     try
     {
         var engineer = Engineer.FromSystemName("NoSuchSystem");
         Assert.IsNull(engineer);
     }
     catch (Exception)
     {
         Assert.Fail();
     }
 }