Skip to content

Commit afd0da8

Browse files
Tests: Fix KeyStore doc examples to use DocSection.Signing
KeyStore guide lives in signing-and-key-management section, not core-foundation. Update all 6 tagged tests to match.
1 parent ee9f693 commit afd0da8

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

tests/Nethereum.Signer.UnitTests/KeyStoreDocExampleTests.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Nethereum.Signer;
55
using Nethereum.Util;
66
using Nethereum.XUnitEthereumClients;
7+
using Nethereum.Documentation;
78
using Xunit;
89

910
namespace Nethereum.Signer.UnitTests
@@ -28,7 +29,7 @@ public class KeyStoreDocExampleTests
2829
};
2930

3031
[Fact]
31-
[NethereumDocExample(DocSection.CoreFoundation, "keystore", "Generate and create Scrypt keystore")]
32+
[NethereumDocExample(DocSection.Signing, "keystore", "Generate and create Scrypt keystore")]
3233
public void ShouldGenerateScryptKeystore()
3334
{
3435
var ecKey = EthECKey.GenerateKey();
@@ -43,7 +44,7 @@ public void ShouldGenerateScryptKeystore()
4344
}
4445

4546
[Fact]
46-
[NethereumDocExample(DocSection.CoreFoundation, "keystore", "Custom Scrypt parameters")]
47+
[NethereumDocExample(DocSection.Signing, "keystore", "Custom Scrypt parameters")]
4748
public void ShouldCreateKeystoreWithCustomScryptParams()
4849
{
4950
var ecKey = EthECKey.GenerateKey();
@@ -61,7 +62,7 @@ public void ShouldCreateKeystoreWithCustomScryptParams()
6162
}
6263

6364
[Fact]
64-
[NethereumDocExample(DocSection.CoreFoundation, "keystore", "PBKDF2 keystore (legacy)")]
65+
[NethereumDocExample(DocSection.Signing, "keystore", "PBKDF2 keystore (legacy)")]
6566
public void ShouldCreatePbkdf2Keystore()
6667
{
6768
var ecKey = EthECKey.GenerateKey();
@@ -78,7 +79,7 @@ public void ShouldCreatePbkdf2Keystore()
7879
}
7980

8081
[Fact]
81-
[NethereumDocExample(DocSection.CoreFoundation, "keystore", "Detect KDF type")]
82+
[NethereumDocExample(DocSection.Signing, "keystore", "Detect KDF type")]
8283
public void ShouldDetectKdfTypeInJson()
8384
{
8485
var ecKey = EthECKey.GenerateKey();
@@ -95,7 +96,7 @@ public void ShouldDetectKdfTypeInJson()
9596
}
9697

9798
[Fact]
98-
[NethereumDocExample(DocSection.CoreFoundation, "keystore", "Default KeyStoreService facade")]
99+
[NethereumDocExample(DocSection.Signing, "keystore", "Default KeyStoreService facade")]
99100
public void ShouldUseDefaultKeyStoreServiceWithScrypt()
100101
{
101102
var ecKey = EthECKey.GenerateKey();
@@ -112,7 +113,7 @@ public void ShouldUseDefaultKeyStoreServiceWithScrypt()
112113
}
113114

114115
[Fact]
115-
[NethereumDocExample(DocSection.CoreFoundation, "keystore", "Roundtrip: generate key, encrypt, decrypt, verify")]
116+
[NethereumDocExample(DocSection.Signing, "keystore", "Roundtrip: generate key, encrypt, decrypt, verify")]
116117
public void ShouldRoundtripKeyThroughKeystore()
117118
{
118119
var ecKey = EthECKey.GenerateKey();

0 commit comments

Comments
 (0)