Tests: Remove unused methods

This commit is contained in:
Tal Aloni 2023-12-22 12:39:06 +02:00
parent dbfab05f17
commit c5b432efe8
9 changed files with 0 additions and 74 deletions

View file

@ -121,13 +121,5 @@ namespace SMBLibrary.Tests
byte[] data = AesCcm.DecryptAndAuthenticate(key, nonce, encyrptedData, associatedData, signature);
Assert.IsTrue(ByteUtils.AreByteArraysEqual(expectedData, data));
}
public void TestAll()
{
TestEncryption_Rfc3610_Packet_Vector1();
TestDecryption_Rfc3610_Packet_Vector1();
TestEncryption();
TestDecryption();
}
}
}

View file

@ -52,10 +52,5 @@ namespace SMBLibrary.Tests
{
m_notifyChangeStatus = status;
}
public void TestAll()
{
TestCancel();
}
}
}

View file

@ -5,8 +5,6 @@
* either version 3 of the License, or (at your option) any later version.
*/
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SMBLibrary.Authentication.NTLM;
using Utilities;
@ -160,19 +158,5 @@ namespace SMBLibrary.Tests
// The payload entries may be distributed differently so we use cmp.GetBytes()
Assert.IsTrue(ByteUtils.AreByteArraysEqual(messageBytes, cmp.GetBytes()));
}
public void TestAll()
{
LMv1HashTest();
LMv1HashTestEmptyPassword();
NTv1HashTest();
NTv2HashTest();
LMv1ResponseTest();
NTLMv1ResponseTest();
LMv2ResponseTest();
NTLMv2ResponseTest();
NTLMv2ChallengeMessageTest();
NTLMv2AuthenticateMessageTest();
}
}
}

View file

@ -207,14 +207,6 @@ namespace SMBLibrary.Tests
Assert.IsTrue(ByteUtils.AreByteArraysEqual(mic, expected));
}
public void TestAll()
{
TestLMMIC();
TestNTLMv1MIC();
TestNTLMv1ExtendedSessionSecurityKeyExchangeMIC();
TestNTLMv2KeyExchangeMIC();
}
private static byte[] GetExportedSessionKey(byte[] sessionBaseKey, AuthenticateMessage message, byte[] serverChallenge, byte[] lmowf)
{
byte[] keyExchangeKey;

View file

@ -125,12 +125,5 @@ namespace SMBLibrary.Tests
byte[] cipher = RC4.Encrypt(key, text);
Assert.IsTrue(ByteUtils.AreByteArraysEqual(cipher, expectedCipher));
}
public void TestAll()
{
Test1();
Test2();
Test3();
}
}
}

View file

@ -33,11 +33,5 @@ namespace SMBLibrary.Tests
byte[] encodedName = NetBiosUtils.EncodeName(name, String.Empty);
Assert.IsTrue(ByteUtils.AreByteArraysEqual(buffer, encodedName));
}
public void TestAll()
{
Test1();
Test2();
}
}
}

View file

@ -93,14 +93,5 @@ namespace SMBLibrary.Tests
byte[] requestBytes = request.GetBytes();
//Assert.IsTrue(ByteUtils.AreByteArraysEqual(buffer, requestBytes));
}
public void TestAll()
{
Test1();
Test2();
Test3();
Test4();
Test5();
}
}
}

View file

@ -102,13 +102,5 @@ namespace SMBLibrary.Tests
Assert.IsTrue(ByteUtils.AreByteArraysEqual(expectedDecryptedMessage, decryptedMessage));
}
public void TestAll()
{
TestEncryptionKeyGeneration();
TestDecryptionKeyGeneration();
TestEncryption();
TestDecryption();
}
}
}

View file

@ -70,12 +70,5 @@ namespace SMBLibrary.Tests
byte[] expected = new byte[] { 0x73, 0xF2, 0xCC, 0x56, 0x09, 0x3E, 0xD2, 0xB5, 0xD7, 0x10, 0x66, 0x6C, 0xE4, 0x28, 0x2D, 0xD1 };
Assert.IsTrue(ByteUtils.AreByteArraysEqual(signature, expected));
}
public void TestAll()
{
TestSMB202SignatureCalculation();
TestSMB210SignatureCalculation();
TestSMB300SignatureCalculation();
}
}
}