Skip to content

Commit 5f58651

Browse files
committed
Cleanup sandbox types
1 parent f083ed8 commit 5f58651

3 files changed

Lines changed: 2 additions & 38 deletions

File tree

src/Common/test/TestResources/IO/Sandbox.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,13 @@ public Sandbox()
2929
/// <returns>
3030
/// The physical path.
3131
/// </returns>
32-
public string ResolvePath(string path)
32+
private string ResolvePath(string path)
3333
{
3434
ArgumentNullException.ThrowIfNull(path);
3535

3636
return Path.Combine(FullPath, path);
3737
}
3838

39-
/// <summary>
40-
/// Creates a directory at the specified path within the sandbox.
41-
/// </summary>
42-
/// <param name="path">
43-
/// The directory path.
44-
/// </param>
45-
/// <returns>
46-
/// The physical path of the created directory.
47-
/// </returns>
48-
public string CreateDirectory(string path)
49-
{
50-
ArgumentNullException.ThrowIfNull(path);
51-
52-
DirectoryInfo directoryInfo = Directory.CreateDirectory(ResolvePath(path));
53-
return directoryInfo.FullName;
54-
}
55-
5639
/// <summary>
5740
/// Creates a file at the specified path within the sandbox.
5841
/// </summary>

src/Common/test/TestResources/IO/TempDirectory.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,13 @@ namespace Steeltoe.Common.TestResources.IO;
99
/// </summary>
1010
public class TempDirectory : TempPath
1111
{
12-
/// <summary>
13-
/// Initializes a new instance of the <see cref="TempDirectory" /> class.
14-
/// </summary>
15-
public TempDirectory()
16-
: base(string.Empty)
17-
{
18-
}
19-
2012
/// <summary>
2113
/// Initializes a new instance of the <see cref="TempDirectory" /> class.
2214
/// </summary>
2315
/// <param name="prefix">
2416
/// Directory name prefix.
2517
/// </param>
26-
public TempDirectory(string prefix)
18+
protected TempDirectory(string prefix)
2719
: base(prefix)
2820
{
2921
}

src/Common/test/TestResources/IO/TempFile.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,6 @@ public TempFile()
1717
{
1818
}
1919

20-
/// <summary>
21-
/// Initializes a new instance of the <see cref="TempFile" /> class.
22-
/// </summary>
23-
/// <param name="prefix">
24-
/// File name prefix.
25-
/// </param>
26-
public TempFile(string prefix)
27-
: base(prefix)
28-
{
29-
}
30-
3120
/// <summary>
3221
/// Creates the temporary file.
3322
/// </summary>

0 commit comments

Comments
 (0)