File: TestDoubles\StubTask.cs
Web Access
Project: src\src\Microsoft.DotNet.Build.Tasks.Feed.Tests\Microsoft.DotNet.Build.Tasks.Feed.Tests.csproj (Microsoft.DotNet.Build.Tasks.Feed.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.Arcade.Test.Common;
using Microsoft.Build.Framework;
 
namespace Microsoft.DotNet.Build.Tasks.Feed.Tests.TestDoubles
{
    public class StubTask : ITask
    {
        public StubTask(IBuildEngine buildEngine)
        {
            BuildEngine = buildEngine;
        }
 
        public StubTask() : this(new MockBuildEngine()) { }
 
        public IBuildEngine BuildEngine { get; set; }
        public ITaskHost HostObject { get; set; }
 
        public bool Execute()
        {
            return true;
        }
    }
}