Skip to content

Commit

Permalink
src: Use global usings in the tests.
Browse files Browse the repository at this point in the history
It makes sense here since there's a lot of repetition.
  • Loading branch information
samuel-lucas6 committed Nov 19, 2023
1 parent 1879ebd commit a00c305
Show file tree
Hide file tree
Showing 18 changed files with 9 additions and 88 deletions.
8 changes: 1 addition & 7 deletions src/Geralt.Tests/AEGIS128LTests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Linq;
using System.Collections.Generic;
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;
namespace Geralt.Tests;

[TestClass]
public class AEGIS128LTests
Expand Down
8 changes: 1 addition & 7 deletions src/Geralt.Tests/AEGIS256Tests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Linq;
using System.Collections.Generic;
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;
namespace Geralt.Tests;

[TestClass]
public class AEGIS256Tests
Expand Down
5 changes: 0 additions & 5 deletions src/Geralt.Tests/Argon2idTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
6 changes: 0 additions & 6 deletions src/Geralt.Tests/BLAKE2bTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
6 changes: 0 additions & 6 deletions src/Geralt.Tests/ChaCha20Poly1305Tests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Linq;
using System.Collections.Generic;
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
5 changes: 0 additions & 5 deletions src/Geralt.Tests/ChaCha20Tests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
5 changes: 0 additions & 5 deletions src/Geralt.Tests/ConstantTimeTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
5 changes: 0 additions & 5 deletions src/Geralt.Tests/Ed25519Tests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Linq;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
5 changes: 0 additions & 5 deletions src/Geralt.Tests/EncodingsTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
7 changes: 7 additions & 0 deletions src/Geralt.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
global using System;
global using System.IO;
global using System.Text;
global using System.Linq;
global using System.Collections.Generic;
global using System.Security.Cryptography;
global using Microsoft.VisualStudio.TestTools.UnitTesting;
3 changes: 0 additions & 3 deletions src/Geralt.Tests/HChaCha20Tests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
4 changes: 0 additions & 4 deletions src/Geralt.Tests/PaddingTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
5 changes: 0 additions & 5 deletions src/Geralt.Tests/Poly1305Tests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Linq;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
4 changes: 0 additions & 4 deletions src/Geralt.Tests/SecureRandomTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
5 changes: 0 additions & 5 deletions src/Geralt.Tests/SpansTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Linq;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
5 changes: 0 additions & 5 deletions src/Geralt.Tests/X25519Tests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
6 changes: 0 additions & 6 deletions src/Geralt.Tests/XChaCha20Poly1305Tests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Linq;
using System.Collections.Generic;
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down
5 changes: 0 additions & 5 deletions src/Geralt.Tests/XChaCha20Tests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Geralt.Tests;

[TestClass]
Expand Down

0 comments on commit a00c305

Please sign in to comment.