Skip to content

Commit bec78da

Browse files
committed
Add the skeleton of the Setup class
1 parent 63cb864 commit bec78da

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

src/Setup.cs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
11
namespace Belin.SetupAnt;
2+
3+
/// <summary>
4+
/// Manages the download and installation of Apache Ant.
5+
/// </summary>
6+
/// <param name="release">The release to download and install.</param>
7+
public class Setup(Release release) {
8+
9+
/// <summary>
10+
/// Downloads and extracts the ZIP archive of Apache Ant.
11+
/// </summary>
12+
/// <param name="optionalTasks">Value indicating whether to fetch the Ant optional tasks.</param>
13+
/// <returns>The path to the extracted directory.</returns>
14+
public string Download(bool optionalTasks = false) {
15+
return "TODO";
16+
}
17+
18+
/// <summary>
19+
/// Installs Apache Ant, after downloading it.
20+
/// </summary>
21+
/// <param name="optionalTasks">Value indicating whether to fetch the Ant optional tasks.</param>
22+
/// <returns>The path to the installation directory.</returns>
23+
public string Install(bool optionalTasks = false) {
24+
return "TODO";
25+
}
26+
}

test/Setup.Tests.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace Belin.SetupAnt;
2+
3+
/// <summary>
4+
/// Tests the features of the <see cref="Setup"/> class.
5+
/// </summary>
6+
/// <param name="testContext">The test context.</param>
7+
[TestClass]
8+
public sealed class SetupTests(TestContext testContext) {
9+
10+
[TestMethod]
11+
public void Download() {
12+
}
13+
14+
[TestMethod]
15+
public void Install() {
16+
}
17+
}

0 commit comments

Comments
 (0)