// RUN: rm -rf %t  &&  mkdir %t
// RUN: %target-build-swift -module-name FactoryTest %s -o %t/a.out
// RUN: %target-run %t/a.out | FileCheck %s
// REQUIRES: OS=macosx

import AppKit

let service = NSSharingService(named: NSSharingServiceNamePostOnTwitter)
// CHECK: Twitter
println(service.title)

// RUN: rm -rf %t  &&  mkdir %t
// RUN: %target-build-swift -module-name FactoryTest %s -o %t/a.out
// RUN: %target-run %t/a.out | FileCheck %s
// REQUIRES: OS=macosx

import AppKit

let image = NSImage(named: NSImageNameTrashEmpty)
// CHECK: TrashEmpty
println(image.name())

Adjust test to not depend on the current user account's configuration.
Adjust test to not depend on the current user account's configuration.

Swift SVN r18943
