mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
Define instance methods for reverser.
This commit is contained in:
17
73_Reverse/csharp/Reverse/Reverse.Tests/TestReverser.cs
Normal file
17
73_Reverse/csharp/Reverse/Reverse.Tests/TestReverser.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Reverse.Tests
|
||||
{
|
||||
internal class TestReverser : Reverser
|
||||
{
|
||||
public TestReverser(int arraySize) : base(arraySize) { }
|
||||
|
||||
public int[] GetArray()
|
||||
{
|
||||
return _array;
|
||||
}
|
||||
|
||||
public void SetArray(int[] array)
|
||||
{
|
||||
_array = array;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user