File tree Expand file tree Collapse file tree
src/Common/test/TestResources/IO Expand file tree Collapse file tree Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff line change @@ -9,21 +9,13 @@ namespace Steeltoe.Common.TestResources.IO;
99/// </summary>
1010public 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 }
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments