Ejemplo n.º 1
0
    public async Task GiveMarshalableTest()
    {
        var marshalable = new MockMarshalable();
        await Task.Run(() => this.client.GiveMarshalable(marshalable)).WithCancellation(this.TimeoutToken);

        await marshalable.Completion.WithCancellation(this.TimeoutToken);
    }
Ejemplo n.º 2
0
    public async Task GiveMarshalableContainerTest()
    {
        var marshalable = new MockMarshalable();
        await Task.Run(() => this.client.GiveMarshalableContainer(new Container <IMarshalable> {
            Field = marshalable
        })).WithCancellation(this.TimeoutToken);

        await marshalable.Completion.WithCancellation(this.TimeoutToken);
    }