CIBuild_push_feature/more-simple-extensions_115.1 #115
897 passed, 3 failed and 0 skipped
❌ tests/DNX.Extensions.Tests/TestResults/_fv-az979-156_2024-08-21_15_30_06.trx
900 tests were completed in 1s with 897 passed, 3 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
DNX.Extensions.Tests.Arrays.ArrayExtensionsTests | 7✅ | 19ms | ||
DNX.Extensions.Tests.Arrays.ByteArrayExtensionsTests | 7✅ | 21ms | ||
DNX.Extensions.Tests.Assemblies.AssemblyExtensionsTests | 3✅ | 4ms | ||
DNX.Extensions.Tests.Comparers.StringComparisonEqualityComparerTests | 55✅ | 23ms | ||
DNX.Extensions.Tests.Conversion.ConvertExtensionsTests+To | 6✅ | 1ms | ||
DNX.Extensions.Tests.Conversion.ConvertExtensionsTests+ToBoolean | 15✅ | 1ms | ||
DNX.Extensions.Tests.Conversion.ConvertExtensionsTests+ToEnum | 8✅ | 4ms | ||
DNX.Extensions.Tests.Conversion.ConvertExtensionsTests+ToGuid | 7✅ | 3ms | ||
DNX.Extensions.Tests.Conversion.ConvertExtensionsTests+ToInt32 | 13✅ | 1ms | ||
DNX.Extensions.Tests.Conversion.ConvertExtensionsTests+ToStringOrDefault | 8✅ | 1ms | ||
DNX.Extensions.Tests.Conversion.GuidExtensionsTests | 11✅ | 2ms | ||
DNX.Extensions.Tests.DateTimes.DateTimeExtensionsTests | 77✅ | 23ms | ||
DNX.Extensions.Tests.Dictionaries.DictionaryExtensionsTests | 12✅ | 20ms | ||
DNX.Extensions.Tests.Enums.EnumExtensionsTests | 5✅ | 2ms | ||
DNX.Extensions.Tests.Execution.RunSafelyTests+Execute_Tests | 5✅ | 6ms | ||
DNX.Extensions.Tests.Execution.RunSafelyTests+ExecuteAsync_Tests | 3✅ | 170ms | ||
DNX.Extensions.Tests.Execution.RunSafelyTests+ExecuteAsyncT_Tests | 5✅ | 263ms | ||
DNX.Extensions.Tests.Execution.RunSafelyTests+ExecuteT_Tests | 5✅ | 3ms | ||
DNX.Extensions.Tests.IO.DirectoryInfoExtensionsTests | 18✅ | 1❌ | 104ms | |
DNX.Extensions.Tests.IO.FileInfoExtensionsTests | 39✅ | 2❌ | 356ms | |
DNX.Extensions.Tests.Linq.EnumerableExtensionsTests+GetAt | 20✅ | 1ms | ||
DNX.Extensions.Tests.Linq.EnumerableExtensionsTests+GetRandomItem | 8✅ | 61ms | ||
DNX.Extensions.Tests.Linq.EnumerableExtensionsTests+HasAny | 4✅ | 1ms | ||
DNX.Extensions.Tests.Linq.EnumerableExtensionsTests+HasAny_Predicate | 5✅ | 1ms | ||
DNX.Extensions.Tests.Linq.EnumerableExtensionsTests+IsOneOf_Tests | 59✅ | 12ms | ||
DNX.Extensions.Tests.Reflection.ReflectionExtensionsTests | 8✅ | 2ms | ||
DNX.Extensions.Tests.Strings.ArgumentParserExtensionsTests | 6✅ | 15ms | ||
DNX.Extensions.Tests.Strings.BuiltInTypesExtensionsTests | 12✅ | 2ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+After | 26✅ | 7ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+AsFarAs | 32✅ | 2ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+Before | 22✅ | 2ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+Between | 27✅ | 1ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+CoalesceNull | 34✅ | 2ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+CoalesceNullOrEmpty | 34✅ | 1ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+CoalesceNullOrWhitespace | 34✅ | 12ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+Contains | 18✅ | 7ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+Ensure | 33✅ | 1ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+From | 32✅ | 4ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+GetBytes | 8✅ | 100ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+IsNull | 12✅ | 14ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+IsValid | 36✅ | 108ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+NullIf | 8✅ | 1ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+Remove | 27✅ | 1ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+RemoveText | 16✅ | 2ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+Reverse | 5✅ | 1ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+Split | 24✅ | 31ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+ToHexString | 1✅ | 5ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+Truncate | 6✅ | 2ms | ||
DNX.Extensions.Tests.Strings.StringExtensionsTests+Wordify | 31✅ | 7ms |
❌ DNX.Extensions.Tests.IO.DirectoryInfoExtensionsTests
✅ FindDirectories_for_directory_that_does_not_exist_finds_expected_files
✅ FindDirectories_for_multiple_patterns_with_recursion_finds_expected_files
✅ FindDirectories_for_multiple_patterns_without_recursion_finds_expected_files
✅ FindDirectories_for_single_pattern_with_recursion_finds_expected_files
✅ FindDirectories_for_single_pattern_without_recursion_finds_expected_files
✅ FindFiles_for_directory_that_does_not_exist_finds_expected_files
✅ FindFiles_for_multiple_patterns_with_recursion_finds_expected_files
✅ FindFiles_for_multiple_patterns_without_recursion_finds_expected_files
✅ FindFiles_for_single_pattern_with_recursion_finds_expected_files
✅ FindFiles_for_single_pattern_without_recursion_finds_expected_files
✅ GetRelativePath_can_extract_relative_path_correctly(dirName: "/tmp/00a6a0f4-54e9-45af-8e88-b22bf251e832", relativeToDirName: "/tmp/57e47c07-0255-4c55-96b6-3f0ae104d592", expected: "../00a6a0f4-54e9-45af-8e88-b22bf251e832")
✅ GetRelativePath_can_extract_relative_path_correctly(dirName: "/tmp/14b8fceb-02cb-4e73-9086-1201b6c64d77", relativeToDirName: "/tmp/abcdefg", expected: "../14b8fceb-02cb-4e73-9086-1201b6c64d77")
✅ GetRelativePath_can_extract_relative_path_correctly(dirName: "/tmp/14b8fceb-02cb-4e73-9086-1201b6c64d77", relativeToDirName: null, expected: null)
✅ GetRelativePath_can_extract_relative_path_correctly(dirName: "/tmp/abcdefg", relativeToDirName: "/tmp/abcdefg", expected: "")
✅ GetRelativePath_can_extract_relative_path_correctly(dirName: "/tmp/abcdefg/dir3", relativeToDirName: "/tmp/abcdefg", expected: "dir3")
✅ GetRelativePath_can_extract_relative_path_correctly(dirName: "/tmp/abcdefg/dir3", relativeToDirName: "/tmp/abcdefg/dir3", expected: "")
❌ GetRelativePath_can_extract_relative_path_correctly(dirName: "/tmp/folder1", relativeToDirName: "/etc/folder2", expected: "/tmp/folder1")
Expected result to be "/tmp/folder1" with a length of 12 because dirName: /tmp/folder1 - relativeToDirInfo: /etc/folder2, but "../../tmp/folder1" has a length of 17, differs near "../" (index 0).
✅ GetRelativePath_can_extract_relative_path_correctly(dirName: "/tmp/folder1", relativeToDirName: "/tmp/folder2", expected: "../folder1")
✅ GetRelativePath_can_extract_relative_path_correctly(dirName: null, relativeToDirName: "/tmp/14b8fceb-02cb-4e73-9086-1201b6c64d77", expected: null)
❌ DNX.Extensions.Tests.IO.FileInfoExtensionsTests
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 0, expected: "0B")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 1000, expected: "1000B")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 1023, expected: "1023B")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 1024, expected: "1KB")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 10240, expected: "10KB")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 102400, expected: "100KB")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 1024000, expected: "1000KB")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 1048500, expected: "1023.9KB")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 1048575, expected: "1024KB")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 1048576, expected: "1MB")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 10485760, expected: "10MB")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 1536, expected: "1.5KB")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 1792, expected: "1.8KB")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 2048, expected: "2KB")
✅ GetFriendlyFileSize_given_a_fileSize_should_return_expected_text(fileSize: 2097152, expected: "2MB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 0, expected: "0B")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 1000, expected: "1000B")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 1023, expected: "1023B")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 1024, expected: "1KB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 10240, expected: "10KB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 102400, expected: "100KB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 1024000, expected: "1000KB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 1048500, expected: "1023.9KB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 1048575, expected: "1024KB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 1048576, expected: "1MB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 10485760, expected: "10MB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 1536, expected: "1.5KB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 1792, expected: "1.8KB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 2048, expected: "2KB")
✅ GetFriendlyFileSize_given_a_valid_FileInfo_should_return_expected_text(fileSize: 2097152, expected: "2MB")
✅ GetFriendlyFileSize_given_an_invalid_FileInfo_should_return_expected_text
✅ GetRelativeFileName_can_extract_relative_filename_correctly(fileName: "/root1/Temp/abcdefg/dir3/file1.tf", dirName: "/root1/Temp/abcdefg", expected: "dir3/file1.tf")
✅ GetRelativeFileName_can_extract_relative_filename_correctly(fileName: "/root1/Temp/abcdefg/dir3/file1.tf", dirName: "/root1/Temp/abcdefg/dir3", expected: "file1.tf")
✅ GetRelativeFileName_can_extract_relative_filename_correctly(fileName: "/root1/Temp/abcdefg/file.txt", dirName: "/root1/Temp/abcdefg", expected: "file.txt")
✅ GetRelativeFileName_can_extract_relative_filename_correctly(fileName: "/root1/Temp/folder1/file.txt", dirName: "/root1/Temp/folder2", expected: "../folder1/file.txt")
❌ GetRelativeFileName_can_extract_relative_filename_correctly(fileName: "/root1/Temp/folder1/file.txt", dirName: "/root2/folder2", expected: "/root1/Temp/folder1/file.txt")
Expected result to be "/root1/Temp/folder1/file.txt" with a length of 28 because dirName: /root2/folder2 - fileName: /root1/Temp/folder1/file.txt, but "../../root1/Temp/folder1/file.txt" has a length of 33, differs near "../" (index 0).
✅ GetRelativeFilePath_can_extract_relative_path_correctly(fileName: "/root1/Temp/abcdefg/dir3/file1.tf", dirName: "/root1/Temp/abcdefg", expected: "dir3")
✅ GetRelativeFilePath_can_extract_relative_path_correctly(fileName: "/root1/Temp/abcdefg/dir3/file1.tf", dirName: "/root1/Temp/abcdefg/dir3", expected: "")
✅ GetRelativeFilePath_can_extract_relative_path_correctly(fileName: "/root1/Temp/abcdefg/file.txt", dirName: "/root1/Temp/abcdefg", expected: "")
✅ GetRelativeFilePath_can_extract_relative_path_correctly(fileName: "/root1/Temp/folder1/file.txt", dirName: "/root1/Temp/folder2", expected: "../folder1")
❌ GetRelativeFilePath_can_extract_relative_path_correctly(fileName: "/root1/Temp/folder1/file.txt", dirName: "/root2/folder2", expected: "/root1/Temp/folder1")
Expected result to be "/root1/Temp/folder1" with a length of 19 because dirName: /root2/folder2 - fileName: /root1/Temp/folder1/file.txt, but "../../root1/Temp/folder1" has a length of 24, differs near "../" (index 0).
Annotations
Check failure on line 236 in tests/DNX.Extensions.Tests/IO/DirectoryInfoTests.cs
github-actions / test-results
DNX.Extensions.Tests.IO.DirectoryInfoExtensionsTests ► GetRelativePath_can_extract_relative_path_correctly(dirName: "/tmp/folder1", relativeToDirName: "/etc/folder2", expected: "/tmp/folder1")
Failed test found in:
tests/DNX.Extensions.Tests/TestResults/_fv-az979-156_2024-08-21_15_30_06.trx
Error:
Expected result to be "/tmp/folder1" with a length of 12 because dirName: /tmp/folder1 - relativeToDirInfo: /etc/folder2, but "../../tmp/folder1" has a length of 17, differs near "../" (index 0).
Raw output
Expected result to be "/tmp/folder1" with a length of 12 because dirName: /tmp/folder1 - relativeToDirInfo: /etc/folder2, but "../../tmp/folder1" has a length of 17, differs near "../" (index 0).
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Primitives.StringEqualityValidator.ValidateAgainstLengthDifferences()
at FluentAssertions.Primitives.StringValidator.Validate()
at FluentAssertions.Primitives.StringAssertions`1.Be(String expected, String because, Object[] becauseArgs)
at DNX.Extensions.Tests.IO.DirectoryInfoExtensionsTests.GetRelativePath_can_extract_relative_path_correctly(String dirName, String relativeToDirName, String expected) in /home/runner/work/DNX.Extensions/DNX.Extensions/tests/DNX.Extensions.Tests/IO/DirectoryInfoTests.cs:line 236
at InvokeStub_DirectoryInfoExtensionsTests.GetRelativePath_can_extract_relative_path_correctly(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Check failure on line 42 in tests/DNX.Extensions.Tests/IO/FileInfoExtensionsTests.cs
github-actions / test-results
DNX.Extensions.Tests.IO.FileInfoExtensionsTests ► GetRelativeFileName_can_extract_relative_filename_correctly(fileName: "/root1/Temp/folder1/file.txt", dirName: "/root2/folder2", expected: "/root1/Temp/folder1/file.txt")
Failed test found in:
tests/DNX.Extensions.Tests/TestResults/_fv-az979-156_2024-08-21_15_30_06.trx
Error:
Expected result to be "/root1/Temp/folder1/file.txt" with a length of 28 because dirName: /root2/folder2 - fileName: /root1/Temp/folder1/file.txt, but "../../root1/Temp/folder1/file.txt" has a length of 33, differs near "../" (index 0).
Raw output
Expected result to be "/root1/Temp/folder1/file.txt" with a length of 28 because dirName: /root2/folder2 - fileName: /root1/Temp/folder1/file.txt, but "../../root1/Temp/folder1/file.txt" has a length of 33, differs near "../" (index 0).
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Primitives.StringEqualityValidator.ValidateAgainstLengthDifferences()
at FluentAssertions.Primitives.StringValidator.Validate()
at FluentAssertions.Primitives.StringAssertions`1.Be(String expected, String because, Object[] becauseArgs)
at DNX.Extensions.Tests.IO.FileInfoExtensionsTests.GetRelativeFileName_can_extract_relative_filename_correctly(String fileName, String dirName, String expected) in /home/runner/work/DNX.Extensions/DNX.Extensions/tests/DNX.Extensions.Tests/IO/FileInfoExtensionsTests.cs:line 42
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
Check failure on line 56 in tests/DNX.Extensions.Tests/IO/FileInfoExtensionsTests.cs
github-actions / test-results
DNX.Extensions.Tests.IO.FileInfoExtensionsTests ► GetRelativeFilePath_can_extract_relative_path_correctly(fileName: "/root1/Temp/folder1/file.txt", dirName: "/root2/folder2", expected: "/root1/Temp/folder1")
Failed test found in:
tests/DNX.Extensions.Tests/TestResults/_fv-az979-156_2024-08-21_15_30_06.trx
Error:
Expected result to be "/root1/Temp/folder1" with a length of 19 because dirName: /root2/folder2 - fileName: /root1/Temp/folder1/file.txt, but "../../root1/Temp/folder1" has a length of 24, differs near "../" (index 0).
Raw output
Expected result to be "/root1/Temp/folder1" with a length of 19 because dirName: /root2/folder2 - fileName: /root1/Temp/folder1/file.txt, but "../../root1/Temp/folder1" has a length of 24, differs near "../" (index 0).
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Primitives.StringEqualityValidator.ValidateAgainstLengthDifferences()
at FluentAssertions.Primitives.StringValidator.Validate()
at FluentAssertions.Primitives.StringAssertions`1.Be(String expected, String because, Object[] becauseArgs)
at DNX.Extensions.Tests.IO.FileInfoExtensionsTests.GetRelativeFilePath_can_extract_relative_path_correctly(String fileName, String dirName, String expected) in /home/runner/work/DNX.Extensions/DNX.Extensions/tests/DNX.Extensions.Tests/IO/FileInfoExtensionsTests.cs:line 56
at InvokeStub_FileInfoExtensionsTests.GetRelativeFilePath_can_extract_relative_path_correctly(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)