diff --git a/NUnitAppAction.cs b/NUnitAppAction.cs index e635e76..031f0d5 100644 --- a/NUnitAppAction.cs +++ b/NUnitAppAction.cs @@ -76,7 +76,7 @@ protected override void RunTests() var agent = this.Context.Agent; { - var fileOps = (IFileOperationsExecuter)agent; + var fileOps = agent.GetService(); var nunitPath = fileOps.GetWorkingDirectory(this.Context.ApplicationId, this.Context.DeployableId ?? 0, this.ExePath); var tmpFileName = fileOps.CombinePath(this.Context.TempDirectory, Guid.NewGuid().ToString() + ".xml");