diff options
-rw-r--r-- | OATH.Net.Test/KeyTests.cs | 4 | ||||
-rw-r--r-- | OATH.Net/Key.cs | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/OATH.Net.Test/KeyTests.cs b/OATH.Net.Test/KeyTests.cs index 9d41833..1c9241c 100644 --- a/OATH.Net.Test/KeyTests.cs +++ b/OATH.Net.Test/KeyTests.cs @@ -15,7 +15,7 @@ namespace OathNet.Test public class KeyTests { [Test] - public void Key_created_with_binary_returns_same_data_1() + public void Key_created_with_binary_returns_correct_binary_1() { var keyData = new byte[] { @@ -28,7 +28,7 @@ namespace OathNet.Test } [Test] - public void Key_created_with_binary_returns_same_data_2() + public void Key_created_with_binary_returns_correct_binary_2() { var keyData = new byte[] { diff --git a/OATH.Net/Key.cs b/OATH.Net/Key.cs index 36b79f7..e812e1d 100644 --- a/OATH.Net/Key.cs +++ b/OATH.Net/Key.cs @@ -16,6 +16,8 @@ namespace OathNet /// </summary> public class Key { + private byte[] keyData; + /// <summary> /// Initializes a new instance of the Key class and generates a random key. /// </summary> @@ -29,7 +31,7 @@ namespace OathNet /// <param name="data">The key to initialize.</param> public Key(byte[] data) { - throw new NotImplementedException(); + this.keyData = data; } /// <summary> @@ -48,7 +50,7 @@ namespace OathNet { get { - throw new NotImplementedException(); + return this.keyData; } } |