 
 func ExpectResult
     <O: ResourceType where O.DecodedType == O>
-    (producer: SignalProducer<(Response, O), Client.Error>, _ result: Result<[O], Client.Error>, file: StaticString = __FILE__, line: UInt = __LINE__)
+    (producer: SignalProducer<(Response, O), Client.Error>, _ result: Result<[O], Client.Error>, file: StaticString = #file, line: UInt = __LINE__)
 {
     let actual = producer.map { $1 }.collect().single()!
     let message: String


func ExpectError
    <O: ResourceType where O.DecodedType == O>
    (producer: SignalProducer<(Response, O), Client.Error>, _ error: Client.Error, file: StaticString = __FILE__, line: UInt = __LINE__)
{
    ExpectResult(producer, Result<[O], Client.Error>.Failure(error), file: file, line: line)
}

func ExpectFixtures
    <F: EndpointFixtureType, O: ResourceType where O.DecodedType == O>
    (producer: SignalProducer<(Response, O), Client.Error>, _ fixtures: F..., file: StaticString = __FILE__, line: UInt = __LINE__)
{
    ExpectResult(producer, Result<[F], Client.Error>.Success(fixtures), file: file, line: line)
}

func ExpectFixtures
    <F: EndpointFixtureType, O: ResourceType, C: CollectionType where O.DecodedType == O, C.Generator.Element == F>
    (producer: SignalProducer<(Response, [O]), Client.Error>, _ fixtures: C, file: StaticString = __FILE__, line: UInt = __LINE__)
{
    ExpectResult(producer, .Success(fixtures), file: file, line: line)
}


func ExpectResult
    <F: EndpointFixtureType, O: ResourceType, C: CollectionType where O.DecodedType == O, C.Generator.Element == F>
    (producer: SignalProducer<(Response, [O]), Client.Error>, _ result: Result<C, Client.Error>, file: StaticString = #file, line: UInt = __LINE__)
{
    let expected = result.map { fixtures -> [[O]] in fixtures.map { $0.decode()! } }
    ExpectResult(producer, expected, file: file, line: line)
