Example #1
0
 public void Defensive()
 {
     Assert.Equal(GoNamespaceExtensions.GetNamespaceImportSymbol((CodeNamespace)null), string.Empty);
     Assert.Equal(GoNamespaceExtensions.GetLastNamespaceSegment((string)null), string.Empty);
     Assert.Equal(GoNamespaceExtensions.GetInternalNamespaceImport((CodeNamespace)null), string.Empty);
 }
Example #2
0
 public void GetLastNamespaceSegment()
 {
     Assert.Equal("something", GoNamespaceExtensions.GetLastNamespaceSegment("github.com/microsoft/kiota.something"));
 }