コード例 #1
0
        public static async Task <LaunchGameWithSteamInfo> FakeLaunchGameWithSteam(this ILaunchWithSteam mediator,
                                                                                   RealVirtualityGame game)
        {
            LaunchGameWithSteamInfo parameters = null;

            A.CallTo(() => mediator.Launch(A <LaunchGameWithSteamInfo> ._))
            .Invokes((LaunchGameWithSteamInfo x) => parameters = x)
            .ReturnsLazily(() => Task.FromResult(default(Process)));
            await game.Launch((dynamic)mediator);

            return(parameters);
        }
コード例 #2
0
ファイル: BasicGame.cs プロジェクト: dkv01/withSIX.Desktop
 protected async Task <Process> LaunchWithSteam(ILaunchWithSteam launcher, LaunchState ls)
 =>
 await
 launcher.Launch(await GetSteamLaunchInfo(ls).ConfigureAwait(false))
 .ConfigureAwait(false);