예제 #1
0
 public static void MapTypeToPackage(this ISymbolMap symbols, string fullyQualifiedName, string package)
 {
     symbols
     .GetPackage(Arg.Is <Type>(t => t.FullyQualifiedName == fullyQualifiedName))
     .Returns(package);
     symbols
     .GetPackage(Arg.Is <string>(n => n == fullyQualifiedName))
     .Returns(package);
     symbols
     .GetPackageSyntaxToken(Arg.Is <Type>(t => t.FullyQualifiedName == fullyQualifiedName))
     .Returns(SF.ParseToken(package));
     symbols
     .GetPackageSyntaxToken(Arg.Is <string>(n => n == fullyQualifiedName))
     .Returns(SF.ParseToken(package));
     symbols
     .GetPackageSyntax(Arg.Is <Type>(t => t.FullyQualifiedName == fullyQualifiedName))
     .Returns(SF.ParseName(package));
     symbols
     .GetPackageSyntax(Arg.Is <string>(n => n == fullyQualifiedName))
     .Returns(SF.ParseName(package));
 }