Merge pull request #152 from phausler/bridge_reduction

Reduce dependency on the bridge() API since it will be changing shortly
diff --git a/Sources/XCTest/Private/TestListing.swift b/Sources/XCTest/Private/TestListing.swift
index 1dfb6a8..74035f6 100644
--- a/Sources/XCTest/Private/TestListing.swift
+++ b/Sources/XCTest/Private/TestListing.swift
@@ -75,11 +75,11 @@
     }
 
     func dictionaryRepresentation() -> NSDictionary {
-        let listedTests = tests.flatMap({ ($0 as? Listable)?.dictionaryRepresentation() })
-        return [
-                   "name": listingName.bridge(),
-                   "tests": listedTests.bridge()
-            ].bridge()
+        let listedTests = NSArray(array: tests.flatMap({ ($0 as? Listable)?.dictionaryRepresentation() }))
+        return NSDictionary(objects: [NSString(string: listingName),
+                                      listedTests],
+                            forKeys: [NSString(string: "name"),
+                                      NSString(string: "tests")])
     }
 
     func findBundleTestSuite() -> XCTestSuite? {
@@ -102,6 +102,6 @@
 
     func dictionaryRepresentation() -> NSDictionary {
         let methodName = String(name.characters.split(separator: ".").last!)
-        return ["name": methodName].bridge()
+        return NSDictionary(object: NSString(string: methodName), forKey: NSString(string: "name"))
     }
 }