コード例 #1
0
 public void AttemptToAccessNonExistentResource()
 {
     var shimHost = new TypeScriptLS ();
     var lsHost = new LanguageServiceShimHostAdapter (shimHost);
     var ls = new TypeScriptServicesFactory ().CreatePullLanguageService (lsHost);
     //Assert.AreEqual (lsHost.Instance, ls.Host.Instance, "#1");
     // attempt to get non-existent definition
     Assert.IsNull (ls.GetDefinitionAtPosition ("nonexistent", 0), "#2");
 }