Skip to content

Bump xunit.runner.visualstudio from 2.5.0 to 2.5.5 #431

Bump xunit.runner.visualstudio from 2.5.0 to 2.5.5

Bump xunit.runner.visualstudio from 2.5.0 to 2.5.5 #431

GitHub Actions / dotnet test results succeeded Dec 11, 2023 in 1s

dotnet test results ✅

Tests passed successfully

✅ test-results.trx

80 tests were completed in 2s with 80 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
HaveIBeenPwned.PwnedPasswords.Tests.BlobStorageTests 3✅ 36ms
HaveIBeenPwned.PwnedPasswords.Tests.HashEntryTests 31✅ 268ms
HaveIBeenPwned.PwnedPasswords.Tests.HashTests 31✅ 46ms
HaveIBeenPwned.PwnedPasswords.Tests.PwnedPasswordAppendTests 8✅ 4ms
HaveIBeenPwned.PwnedPasswords.Tests.RangeTests 7✅ 249ms

✅ HaveIBeenPwned.PwnedPasswords.Tests.BlobStorageTests

✅ ParsesCultureIntSuccessfully(hashLine: "FDFD0D9BC12735B077ACF1FA63D6F42229D:1")
✅ ParsesCultureIntSuccessfully(hashLine: "FE5CCB19BA61C4C0873D391E987982FBBD3:86,453")
✅ RendersHashesWithoutEndingNewline

✅ HaveIBeenPwned.PwnedPasswords.Tests.HashEntryTests

✅ CanBePutIntoSortedList
✅ CanBePutIntoSortedListWithHashKeyAndPrevalenceValue
✅ CanBePutIntoSortedSet
✅ CorrectlyParsesHashes(hashstring: "000000:123", hash: [0, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashes(hashstring: "0F0000:123    \n", hash: [15, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashes(hashstring: "0F0000:123\n", hash: [15, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashes(hashstring: "FF0000:123", hash: [255, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashes(hashstring: "FF0000:123\r\n", hash: [255, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashesAsTextAndWritesBinary(hashstring: "000000:123", hash: [0, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashesAsTextAndWritesBinary(hashstring: "0F0000:123    \n", hash: [15, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashesAsTextAndWritesBinary(hashstring: "0F0000:123\n", hash: [15, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashesAsTextAndWritesBinary(hashstring: "FF0000:123", hash: [255, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashesAsTextAndWritesBinary(hashstring: "FF0000:123\r\n", hash: [255, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashesWithPrefix(prefix: "00000", hashstring: "00000:123", hash: [0, 0, 0, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashesWithPrefix(prefix: "00000", hashstring: "F0000:123", hash: [0, 0, 15, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashesWithPrefix(prefix: "00000", hashstring: "F0000:123\r\n", hash: [0, 0, 15, 0, 0], prevalence: 123)
✅ CorrectlyParsesHashesWithPrefix(prefix: "0000F", hashstring: "00000:123\n", hash: [0, 0, 240, 0, 0], prevalence: 123)
✅ IncrementingPrevalenceInSortedSetChangesValues
✅ ParseHashLines
✅ ParseHashLinesAsPipe
✅ ParseHashLinesAsPipeFull
✅ ParseTextAndWriteAndParseBinaryReturnsSameResults
✅ ParseTextAndWriteAndParseBinaryReturnsSameResultsForFullHashes
✅ SerializesToJsonCorrectly
✅ TryParseFromTextReturnsFalse(hashstring: ":123")
✅ TryParseFromTextReturnsFalse(hashstring: "")
✅ TryParseFromTextReturnsFalse(hashstring: "00000:123")
✅ TryParseFromTextReturnsFalse(hashstring: "000000:")
✅ TryParseFromTextReturnsFalse(hashstring: "000000:ABC")
✅ TryParseFromTextReturnsFalse(hashstring: "000000")
✅ TryParseFromTextReturnsFalse(hashstring: "000XYZ:123")

✅ HaveIBeenPwned.PwnedPasswords.Tests.HashTests

✅ CreateNTLMHash(input: "hunter2", expected: "6608E4BC7B2B7A5F77CE3573570775AF")
✅ CreateNTLMHash(input: "Passw0rd!", expected: "FC525C9683E8FE067095BA2DDC971889")
✅ CreateNTLMHash(input: "ThisIsAReallyLongPasswordThatShouldRequireMoreThan"···, expected: "1AECCB344D30AB6DFA13A5CA7FB75C18")
✅ CreateSHA1Hash(input: "hunter2", expected: "F3BBBD66A63D4BF1747940578EC3D0103530E21D")
✅ CreateSHA1Hash(input: "Passw0rd!", expected: "F4A69973E7B0BF9D160F9F60E3C3ACD2494BEB0D")
✅ IsHexString(input: "", isHex: False)
✅ IsHexString(input: "0bAdF00D", isHex: True)
✅ IsHexString(input: "0BADF00D", isHex: True)
✅ IsHexString(input: "123", isHex: True)
✅ IsHexString(input: "OHNO!", isHex: False)
✅ IsHexStringOfLength(input: "", length: 0, expected: False)
✅ IsHexStringOfLength(input: "01", length: 2, expected: True)
✅ IsHexStringOfLength(input: "aB", length: 2, expected: True)
✅ IsHexStringOfLength(input: "F4A69", length: 5, expected: True)
✅ IsHexStringOfLength(input: "F4A69973E7B0BF9D160F9F60E3C3ACD2494BEB0D", length: 39, expected: False)
✅ IsHexStringOfLength(input: "F4A69973E7B0BF9D160F9F60E3C3ACD2494BEB0D", length: 40, expected: True)
✅ IsNTLMHash(input: "", expected: False)
✅ IsNTLMHash(input: "31D6CFE0D16AE931B73C59D7E0C089C", expected: False)
✅ IsNTLMHash(input: "31d6cfe0d16ae931b73c59d7e0c089c0", expected: True)
✅ IsNTLMHash(input: "31D6CFE0D16AE931B73C59D7E0C089C0", expected: True)
✅ IsNTLMHash(input: "31D6CFE0D16AE931B73C59D7E0C089C0A", expected: False)
✅ IsNTLMHash(input: "F4A69973E7B0BF9D160F9F60E3C3ACD2494BEB0D", expected: False)
✅ IsNTLMHash(input: "G1D6CFE0D16AE931B73C59D7E0C089C0", expected: False)
✅ IsSHA1Hash(input: "", expected: False)
✅ IsSHA1Hash(input: "31D6CFE0D16AE931B73C59D7E0C089C0", expected: False)
✅ IsSHA1Hash(input: "f3bbBD66A63D4BF1747940578EC3D0103530E21D", expected: True)
✅ IsSHA1Hash(input: "F3BBBD66A63D4BF1747940578EC3D0103530E21D", expected: True)
✅ IsSHA1Hash(input: "F3BBBD66A63D4BF1747940578EC3D0103530E21DAA", expected: False)
✅ IsSHA1Hash(input: "f4A69973E7B0BF9D160f9f60E3C3ACD2494BEB0D", expected: True)
✅ IsSHA1Hash(input: "F4A69973E7B0BF9D160F9F60E3C3ACD2494BEB0D", expected: True)
✅ IsSHA1Hash(input: "G3BBBD66A63D4BF1747940578EC3D0103530E21D", expected: False)

✅ HaveIBeenPwned.PwnedPasswords.Tests.PwnedPasswordAppendTests

✅ PartitionKey(hash: "ABCDEF", partitionKey: "ABCDE")
✅ PartitionKey(hash: "c5c375930174561a95fca5388b45abad802a19cd", partitionKey: "C5C37")
✅ RowKey(hash: "ABCDEFABC", rowKey: "FABC")
✅ RowKey(hash: "c5c375930174561a95fca5388b45abad802a19cd", rowKey: "5930174561A95FCA5388B45ABAD802A19CD")
✅ UppercaseNTLMHash(hash: "abcdef", upperHash: "ABCDEF")
✅ UppercaseNTLMHash(hash: "b4b9b02e6f09a9bd760f388b67351e2b", upperHash: "B4B9B02E6F09A9BD760F388B67351E2B")
✅ UppercaseSHA1Hash(hash: "abcdef", upperHash: "ABCDEF")
✅ UppercaseSHA1Hash(hash: "c5c375930174561a95fca5388b45abad802a19cd", upperHash: "C5C375930174561A95FCA5388B45ABAD802A19CD")

✅ HaveIBeenPwned.PwnedPasswords.Tests.RangeTests

✅ Returns_bad_request_given_invalid_hashprefix(invalidHashPrefix: "")
✅ Returns_bad_request_given_invalid_hashprefix(invalidHashPrefix: "123456")
✅ Returns_bad_request_given_invalid_hashprefix(invalidHashPrefix: "ABCDG")
✅ Returns_bad_request_given_invalid_hashprefix(invalidHashPrefix: "ghijk")
✅ Returns_internal_server_error_when_something_goes_wrong
✅ Returns_notfound_if_hashprefix_doesnt_exist
✅ Returns_ok_given_valid_hashprefix