Skip to content

Added test report, to show broken tests, and then fixed the tests #34

Added test report, to show broken tests, and then fixed the tests

Added test report, to show broken tests, and then fixed the tests #34

GitHub Actions / All Tests failed Sep 27, 2023 in 0s

All Tests ❌

Tests failed

Report Passed Failed Skipped Time
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_51.trx 119✔️ 2s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_53.trx 4s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_54.trx 1s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_57.trx 3s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_57[1].trx 52✔️ 7s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_59.trx 1✔️ 1s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_00.trx 22✔️ 2s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_02.trx 40✔️ 1s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_03.trx 11✔️ 2s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_07.trx 1s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_07[1].trx 2s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_09.trx 1s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_12.trx 1✔️ 3s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_13.trx 16✔️ 1❌ 7s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_14.trx 1s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_15.trx 1s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_17.trx 2s
src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_17[1].trx 1s

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_51.trx

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

Test suite Passed Failed Skipped Time
Common.UnitTests.Extensions.CollectionExtensionsSpec 3✔️ 32ms
Common.UnitTests.Extensions.DateTimeExtensionsSpec 21✔️ 40ms
Common.UnitTests.Extensions.DictionaryExtensionsSpec 5✔️ 15ms
Common.UnitTests.Extensions.EnumExtensionsSpec 10✔️ 123ms
Common.UnitTests.Extensions.StringExtensionsSpec 30✔️ 50ms
Common.UnitTests.OptionalSpec 24✔️ 38ms
Common.UnitTests.ResultSpec 26✔️ 24ms

✔️ Common.UnitTests.Extensions.CollectionExtensionsSpec

✔️ WhenContainsIgnoreCaseAndEmptyCollection_ThenReturnsFalse
✔️ WhenContainsIgnoreCaseAndMatches_ThenReturnsTrue
✔️ WhenContainsIgnoreCaseAndNoMatches_ThenReturnsFalse

✔️ Common.UnitTests.Extensions.DateTimeExtensionsSpec

✔️ WhenFromIso8601AndEmptyValue_ThenReturnsMinDate
✔️ WhenFromIso8601AndISO8601Local_ThenReturnsUtcDate
✔️ WhenFromIso8601AndISO8601UtcWithMillionths_ThenReturnsUtcDate
✔️ WhenFromIso8601AndISO8601UtcWithNoMilliseconds_ThenReturnsUtcDate
✔️ WhenFromIso8601AndNotISO8601_ThenReturnsMinDate
✔️ WhenFromIso8601AndNullValue_ThenReturnsMinDate
✔️ WhenFromIso8601AndOtherFormat_ThenReturnsMinDate
✔️ WhenFromUnixTimestampWithFutureDateInSeconds_ThenReturnsDate
✔️ WhenFromUnixTimestampWithNowInSeconds_ThenReturnsDate
✔️ WhenFromUnixTimestampWithNull_ThenReturnsMinDate
✔️ WhenFromUnixTimestampWithPastDateInSeconds_ThenReturnsDate
✔️ WhenFromUnixTimestampWithZero_ThenReturnsUnixEpoch
✔️ WhenToIso8601WithLocalTime_ThenReturnsUtcTime
✔️ WhenToIso8601WithNull_ThenReturnsEmpty
✔️ WhenToIso8601WithUniversalTime_ThenReturnsUtcTime
✔️ WhenToUnixMilliSecondsWithLocalTime_ThenReturnsUtcTime
✔️ WhenToUnixMilliSecondsWithNull_ThenReturnsZero
✔️ WhenToUnixMilliSecondsWithUniversalTime_ThenReturnsUtcTime
✔️ WhenToUnixSecondsWithLocalTime_ThenReturnsUtcTime
✔️ WhenToUnixSecondsWithNull_ThenReturnsZero
✔️ WhenToUnixSecondsWithUniversalTime_ThenReturnsUtcTime

✔️ Common.UnitTests.Extensions.DictionaryExtensionsSpec

✔️ WhenMergeAndOtherIsEmpty_ThenNothingAdded
✔️ WhenMergeAndSourceAndOtherHaveSameKeys_ThenSourceRemains
✔️ WhenMergeAndSourceAndOtherHaveUniqueKeys_ThenOtherAdded
✔️ WhenMergeAndSourceAndOtherIsEmpty_ThenContainsNothing
✔️ WhenMergeAndSourceIsEmpty_ThenOtherAdded

✔️ Common.UnitTests.Extensions.EnumExtensionsSpec

✔️ WhenToEnumAndEmpty_ThenThrows
✔️ WhenToEnumAndHasSameOption_ThenReturnsOption
✔️ WhenToEnumAndMatches_ThenReturnsMatched
✔️ WhenToEnumAndMissingOptionInTarget_ThenThrows
✔️ WhenToEnumAndNotMatches_ThenThrows
✔️ WhenToEnumOrDefaultAndEmpty_ThenReturnsDefault
✔️ WhenToEnumOrDefaultAndMatches_ThenReturnsMatched
✔️ WhenToEnumOrDefaultAndNotMatches_ThenReturnsDefault
✔️ WhenToEnumOrDefaultAndOptionNotExistsInTarget_ThenReturnsDefault
✔️ WhenToEnumOrDefaultAndSameOption_ThenReturnsOption

✔️ Common.UnitTests.Extensions.StringExtensionsSpec

✔️ WhenHasValueAndEmpty_ThenReturnsFalse
✔️ WhenHasValueAndHasValue_ThenReturnsTrue
✔️ WhenHasValueAndNull_ThenReturnsFalse
✔️ WhenHasValueAndOnlyWhitespace_ThenReturnsFalse
✔️ WhenIsMatchAndMatches_ThenReturnsTrue
✔️ WhenIsMatchAndNotMatches_ThenReturnsFalse
✔️ WhenIsMatchWithEmpty_ThenReturnsFalse
✔️ WhenIsMatchWithEmptyAndEmptyPattern_ThenReturnsTrue
✔️ WhenIsMatchWithNull_ThenReturnsFalse
✔️ WhenIsMatchWithNullPattern_ThenReturnsFalse
✔️ WhenToBoolAndEmpty_ThenReturnsFalse
✔️ WhenToBoolAndMatchesLowercase_ThenReturnsTrue
✔️ WhenToBoolAndMatchesMixedcase_ThenReturnsTrue
✔️ WhenToBoolAndMatchesUppercase_ThenReturnsTrue
✔️ WhenToBoolAndNotMatches_ThenThrows
✔️ WhenToBoolOrDefaultAndEmpty_ThenReturnsDefault
✔️ WhenToBoolOrDefaultAndMatchesLowercase_ThenReturnsMatched
✔️ WhenToBoolOrDefaultAndMatchesMixedcase_ThenReturnsMatched
✔️ WhenToBoolOrDefaultAndMatchesUppercase_ThenReturnsMatched
✔️ WhenToBoolOrDefaultAndNotMatches_ThenReturnsDefault
✔️ WhenToIntAndEmpty_ThenReturnsMinusOne
✔️ WhenToIntAndMatchesLowercase_ThenReturnsTrue
✔️ WhenToIntAndNotMatches_ThenThrows
✔️ WhenToIntOrDefaultAndEmpty_ThenReturnsDefault
✔️ WhenToIntOrDefaultAndNotMatches_ThenReturnsDefault
✔️ WhenToJsonAndCamelCase_ThenReturnsJsonPrettyPrintedWithNoNullsInCamel
✔️ WhenToJsonAndDefaults_ThenReturnsJsonPrettyPrintedWithNoNullsInPascal
✔️ WhenToJsonAndIncludeNulls_ThenReturnsJsonPrettyPrintedWithNullsInPascal
✔️ WhenToJsonAndNotPretty_ThenReturnsJsonWithNoNullsInPascal
✔️ WhenToJsonAndNull_ThenReturnsNull

✔️ Common.UnitTests.OptionalSpec

✔️ WhenConstructedWithAnyValue_ThenHasValue
✔️ WhenConstructedWithNullInstance_ThenHasNoValue
✔️ WhenConstructedWithoutAnyValue_ThenHasNoValue
✔️ WhenEqualsOperatorOptionalOfInstance_ThenReturnsTrue
✔️ WhenEqualsOperatorWithEmptyOptionalAndWithNone_ThenReturnsTrue
✔️ WhenEqualsOperatorWithEmptyOptionalOfSameType_ThenReturnsFalse
✔️ WhenEqualsOperatorWithEmptyOptionals_ThenReturnsTrue
✔️ WhenEqualsOperatorWithNoneAndWithNone_ThenReturnsTrue
✔️ WhenEqualsOperatorWithNull_ThenReturnsFalse
✔️ WhenEqualsOperatorWithSameOptionals_ThenReturnsTrue
✔️ WhenEqualsOptionalOfInstance_ThenReturnsTrue
✔️ WhenEqualsWithEmptyOptionalOfSameType_ThenReturnsFalse
✔️ WhenEqualsWithNull_ThenReturnsFalse
✔️ WhenGetValue_ThenReturnsValue
✔️ WhenGetValueAndNullInstance_ThenThrows
✔️ WhenGetValueOrDefault_ThenReturnsValue
✔️ WhenGetValueOrDefaultAndNullInstance_ThenReturnsNull
✔️ WhenNotEqualsOperatorOptionalOfInstance_ThenReturnsFalse
✔️ WhenNotEqualsOperatorWithEmptyOptionalOfSameType_ThenReturnsTrue
✔️ WhenNotEqualsOperatorWithNull_ThenReturnsTrue
✔️ WhenObjectEqualsBetweenEmptyOptionalAndInstanceOfSameType_ThenReturnsFalse
✔️ WhenObjectEqualsBetweenNullOptionalAndInstance_ThenReturnsFalse
✔️ WhenObjectEqualsBetweenOptionalOfInstanceAndOptionalOfInstance_ThenReturnsTrue
✔️ WhenObjectEqualsBetweenOptionOfInstanceAndInstance_ThenReturnsTrue

✔️ Common.UnitTests.ResultSpec

✔️ WhenBitwiseAndingResultsThatAreBothSuccessful_ThenReturnsTrue
✔️ WhenBitwiseAndResultsThatAreNotBothSuccessful_ThenReturnsFalse
✔️ WhenCastAnyErrorToResultOfThatError_ThenReturnsResultOfThatError
✔️ WhenCastAnyResultOfValueToTypeOfValue_ThenReturnsValue
✔️ WhenCastAnyValueToResultOfThatValue_ThenReturnsResultOfThatValue
✔️ WhenConstructedWithAnyError_ThenInitialized
✔️ WhenConstructedWithAnyOptionalValue_ThenInitialized
✔️ WhenConstructedWithAnyScalarValue_ThenInitialized
✔️ WhenConstructedWithEmptyOptionalValue_ThenInitialized
✔️ WhenConstructedWithNullScalarValue_ThenInitialized
✔️ WhenFromErrorWithError_ThenReturnsResultOfError
✔️ WhenFromValueWithValue_ThenReturnsResultOfValue
✔️ WhenGetError_ThenReturnsValue
✔️ WhenGetErrorAndNotFaulted_ThenThrows
✔️ WhenGetValue_ThenReturnsValue
✔️ WhenGetValueAndFaulted_ThenThrows
✔️ WhenMatchAndNotSuccessful_ThenReturnsTheErrorDelegate
✔️ WhenMatchAndSuccessful_ThenReturnsTheSuccessfulDelegate
✔️ WhenToStringAndFaulted_ThenReturnsErrorRepresentation
✔️ WhenToStringAndNotFaulted_ThenReturnsValueRepresentation
✔️ WhenTryGetAndIsFaulted_ThenReturnsFalse
✔️ WhenTryGetAndIsNotFaulted_ThenReturnsTrue
✔️ WhenTryGetErrorAndIsFaulted_ThenReturnsTrue
✔️ WhenTryGetErrorAndIsNotFaulted_ThenReturnsFalse
✔️ WhenTryGetOutAndIsFaulted_ThenReturnsFalse
✔️ WhenTryGetOutAndIsNotFaulted_ThenReturnsTrue

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_53.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_54.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_57.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_57[1].trx

52 tests were completed in 7s with 52 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.WebApi.Common.UnitTests.ContentNegotiationFilterSpec 11✔️ 659ms
Infrastructure.WebApi.Common.UnitTests.HasGetOptionsExtensionsSpec 6✔️ 5ms
Infrastructure.WebApi.Common.UnitTests.HasGetOptionsSpec 4✔️ 17ms
Infrastructure.WebApi.Common.UnitTests.HasSearchOptionsExtensionsSpec 9✔️ 13ms
Infrastructure.WebApi.Common.UnitTests.JsonDateTimeConverterSpec 6✔️ 22ms
Infrastructure.WebApi.Common.UnitTests.ServiceCollectionExtensionsSpec 5✔️ 13ms
Infrastructure.WebApi.Common.UnitTests.SubDomainModulesSpec 9✔️ 4s
Infrastructure.WebApi.Common.UnitTests.ValidationBehaviorSpec 2✔️ 2s

✔️ Infrastructure.WebApi.Common.UnitTests.ContentNegotiationFilterSpec

✔️ WhenInvokeAsyncWithIResultResponseAndFormatXml_ThenReturnsXml
✔️ WhenInvokeAsyncWithIValueHttpResultResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithNakedEmptyStringResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithNakedObjectResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithNakedObjectResponseAndAcceptXml_ThenReturnsXml
✔️ WhenInvokeAsyncWithNakedObjectResponseAndFormatXml_ThenReturnsXml
✔️ WhenInvokeAsyncWithNoContentResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithNullResponse_ThenReturnsNull
✔️ WhenInvokeAsyncWithNullValueIResultResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithOtherEmptyIResultResponse_ThenReturnsJsonContentAsOk
✔️ WhenInvokeAsyncWithStreamResultResponse_ThenReturnsJsonContentAsOk

✔️ Infrastructure.WebApi.Common.UnitTests.HasGetOptionsExtensionsSpec

✔️ WhenToGetOptionsAndEmbedIsAll_ThenReturnsEnabled
✔️ WhenToGetOptionsAndEmbedIsCommaDelimitedResourceReferences_ThenReturnsChildResources
✔️ WhenToGetOptionsAndEmbedIsOff_ThenReturnsDisabled
✔️ WhenToGetOptionsAndEmbedIsUndefined_ThenReturnsExpandAll
✔️ WhenToGetOptionsAndEmbedIsUndefinedAndIsSearchOptions_ThenReturnsExpandNone
✔️ WhenToGetOptionsAndNullOptions_ThenReturnsNull

✔️ Infrastructure.WebApi.Common.UnitTests.HasGetOptionsSpec

✔️ WhenAll_ThenReturnsAll
✔️ WhenCustomWithMultipleResourceReferences_ThenReturnsChildResources
✔️ WhenCustomWithSingleResourceReference_ThenReturnsChildResources
✔️ WhenNone_ThenReturnsNone

✔️ Infrastructure.WebApi.Common.UnitTests.HasSearchOptionsExtensionsSpec

✔️ WhenToSearchOptionsAndAllUndefined_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndAllUndefinedWithDefaultMaxLimit_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndAllUndefinedWithDefaults_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndFilters_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndLimit_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndNoLimit_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsAndNullOptions_ThenReturnsNull
✔️ WhenToSearchOptionsAndSingleSort_ThenReturnsSearchOptions
✔️ WhenToSearchOptionsWithDefaults_ThenReturnsSearchOptions

✔️ Infrastructure.WebApi.Common.UnitTests.JsonDateTimeConverterSpec

✔️ WhenReadAndIsNeitherStringNorNumber_ThenReturnsMinDate
✔️ WhenReadAndIsNumberAsUnixTimestamp_ThenReturnsDate
✔️ WhenReadAndIsStringAsISO8601Date_ThenReturnsDate
✔️ WhenReadAndIsStringWithInvalidDate_ThenReturnsMinDate
✔️ WhenWriteAndIso8601Format_ThenWriteUnixTimestamp
✔️ WhenWriteAndUnixTimestampFormat_ThenWriteUnixTimestamp

✔️ Infrastructure.WebApi.Common.UnitTests.ServiceCollectionExtensionsSpec

✔️ WhenAddValidatorBehaviors_ThenRegistersBehavior
✔️ WhenAddValidatorBehaviorsAndNoMatchingValidators_ThenRegistersNoBehaviors
✔️ WhenAddValidatorBehaviorsAndNoRegisteredValidators_ThenRegistersNoBehaviors
✔️ WhenAddValidatorBehaviorsAndNoRequestTypes_ThenRegistersNoBehaviors
✔️ WhenRegisterValidators_ThenRegistersInContainer

✔️ Infrastructure.WebApi.Common.UnitTests.SubDomainModulesSpec

✔️ WhenConfigureHost_ThenAppliedToAllModules
✔️ WhenConfigureHostAndNoModules_ThenAppliedToAllModules
✔️ WhenRegisterAndNullAggregatePrefixes_ThenThrows
✔️ WhenRegisterAndNullApiAssembly_ThenThrows
✔️ WhenRegisterAndNullMinimalApiRegistrationFunction_ThenThrows
✔️ WhenRegisterAndNullModule_ThenThrows
✔️ WhenRegisterAndNullRegisterServicesFunction_ThenRegisters
✔️ WhenRegisterServices_ThenAppliedToAllModules
✔️ WhenRegisterServicesAndNoModules_ThenAppliedToAllModules

✔️ Infrastructure.WebApi.Common.UnitTests.ValidationBehaviorSpec

✔️ WhenHandleAndValidatorFails_ThenReturnsBadRequest
✔️ WhenHandleAndValidatorPasses_ThenExecutesMiddleware

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_22_59.trx

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

Test suite Passed Failed Skipped Time
CarsApi.UnitTests.Apis.Cars.GetCarRequestValidatorSpec 1✔️ 112ms

✔️ CarsApi.UnitTests.Apis.Cars.GetCarRequestValidatorSpec

✔️ WhenAllProperties_ThenSucceeds

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_00.trx

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

Test suite Passed Failed Skipped Time
Application.Interfaces.UnitTests.GetOptionsExtensionsSpec 6✔️ 7ms
Application.Interfaces.UnitTests.SearchOptionsExtensionsSpec 5✔️ 13ms
Application.Interfaces.UnitTests.SearchOptionsSpec 11✔️ 564ms

✔️ Application.Interfaces.UnitTests.GetOptionsExtensionsSpec

✔️ WhenShouldExpandEmbeddedResourceAndExpandIsAll_ThenReturnsTrue
✔️ WhenShouldExpandEmbeddedResourceAndExpandIsCustomAndKnownChildResources_ThenReturnsTrue
✔️ WhenShouldExpandEmbeddedResourceAndExpandIsCustomAndNoChildResources_ThenReturnsFalse
✔️ WhenShouldExpandEmbeddedResourceAndExpandIsCustomAndUnknownChildResources_ThenReturnsFalse
✔️ WhenShouldExpandEmbeddedResourceAndExpandIsNone_ThenReturnsFalse
✔️ WhenShouldExpandEmbeddedResourceAndNullOptions_ThenReturnsTrue

✔️ Application.Interfaces.UnitTests.SearchOptionsExtensionsSpec

✔️ WhenToMetadataSafe_ThenReturnsPopulatedSearchMetadata
✔️ WhenToMetadataSafeAndTotal_ThenReturnsPopulatedSearchMetadata
✔️ WhenToMetadataSafeWithInitialSearchOptions_ThenReturnsSearchMetadata
✔️ WhenToMetadataSafeWithNullSearchOptions_ThenReturnsDefaultSearchMetadata
✔️ WhenToMetadataSafeWithNullSearchOptionsAndTotal_ThenReturnsDefaultSearchMetadata

✔️ Application.Interfaces.UnitTests.SearchOptionsSpec

✔️ WhenApplyWithMetadataAndLimitGreaterThanMax_ThenTakesMaxLimit
✔️ WhenApplyWithMetadataAndLimitGreaterThanMaxAndQueriedLessThanLimit_ThenTakesMaxQueried
✔️ WhenApplyWithMetadataAndLimitLessThanMax_ThenTakesLimit
✔️ WhenApplyWithMetadataAndLimitLessThanMaxAndQueriedLessThanLimit_ThenTakesMaxQueried
✔️ WhenApplyWithMetadataAndNoLimit_ThenTakesDefaultLimit
✔️ WhenApplyWithMetadataAndNoSorting_ThenNoOrdering
✔️ WhenApplyWithMetadataAndSortByIsEmpty_ThenNoOrdering
✔️ WhenApplyWithMetadataAndSortByIsUnknown_ThenNoOrdering
✔️ WhenApplyWithMetadataAndSortDirectionAscending_ThenOrderingAscending
✔️ WhenApplyWithMetadataAndSortDirectionDescending_ThenOrderingByDefault
✔️ WhenApplyWithMetadataAndSortDirectionDescending_ThenOrderingDescending

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_02.trx

40 tests were completed in 1s with 40 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Domain.Interfaces.UnitTests.Validations.ValidationsSpec 40✔️ 21ms

✔️ Domain.Interfaces.UnitTests.Validations.ValidationsSpec

✔️ WhenAnythingWithLeastChars_ThenReturnsTrue
✔️ WhenAnythingWithMaxChars_ThenReturnsTrue
✔️ WhenAnythingWithSpecialCharacters_ThenReturnsTrue
✔️ WhenAnythingWithTooLong_ThenReturnsFalse
✔️ WhenAnythingWithTooShort_ThenReturnsFalse
✔️ WhenDescriptiveNameIsEmpty_ThenReturnsFalse
✔️ WhenDescriptiveNameWithInvalidPrintableChar_ThenReturnsFalse
✔️ WhenDescriptiveNameWithLeastChars_ThenReturnsTrue
✔️ WhenDescriptiveNameWithMaxChars_ThenReturnsTrue
✔️ WhenDescriptiveNameWithTooLong_ThenReturnsFalse
✔️ WhenDescriptiveNameWithTooShort_ThenReturnsFalse
✔️ WhenDescriptiveNameWithValidChars_ThenReturnsTrue
✔️ WhenEmailWithCommonFormat_ThenReturnsTrue
✔️ WhenEmailWithMultiLevelDomainFormat_ThenReturnsTrue
✔️ WhenEmailWithNoName_ThenReturnsFalse
✔️ WhenEmailWithWhitespaceName_ThenReturnsFalse
✔️ WhenFreeFormTextWithInvalidPrintableChar_ThenReturnsFalse
✔️ WhenFreeFormTextWithLeastChars_ThenReturnsTrue
✔️ WhenFreeFormTextWithMaxChars_ThenReturnsTrue
✔️ WhenFreeFormTextWithMultiLineInUnix_ThenReturnsTrue
✔️ WhenFreeFormTextWithMultiLineInWindows_ThenReturnsTrue
✔️ WhenFreeFormTextWithTooLong_ThenReturnsFalse
✔️ WhenFreeFormTextWithTooShort_ThenReturnsFalse
✔️ WhenFreeFormTextWithValidChars_ThenReturnsTrue
✔️ WhenFreeFormTextWithZeroMinAndEmpty_ThenReturnsTrue
✔️ WhenMarkdownTextWithInvalidPrintableChar_ThenReturnsFalse
✔️ WhenMarkdownTextWithLeastChars_ThenReturnsTrue
✔️ WhenMarkdownTextWithMaxChars_ThenReturnsTrue
✔️ WhenMarkdownTextWithMultiLineInUnix_ThenReturnsTrue
✔️ WhenMarkdownTextWithMultiLineInWindows_ThenReturnsTrue
✔️ WhenMarkdownTextWithTooLong_ThenReturnsFalse
✔️ WhenMarkdownTextWithTooShort_ThenReturnsFalse
✔️ WhenMarkdownTextWithValidChars_ThenReturnsTrue
✔️ WhenMarkdownTextWithZeroMinAndEmpty_ThenReturnsTrue
✔️ WhenMarkdownWithValidChars_ThenReturnsTrue
✔️ WhenMatchesHasExpression_ThenReturnsTrue
✔️ WhenMatchesHasExpressionAndIsNotTooLong_ThenReturnsTrue
✔️ WhenMatchesHasExpressionAndIsTooLong_ThenReturnsFalse
✔️ WhenMatchesHasFunction_ThenReturnsFalse
✔️ WhenMatchesHasFunction_ThenReturnsTrue

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_03.trx

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

Test suite Passed Failed Skipped Time
Domain.Common.UnitTests.NamePrefixedIdentifierFactorySpec 11✔️ 25ms

✔️ Domain.Common.UnitTests.NamePrefixedIdentifierFactorySpec

✔️ WhenConvertGuidWithKnownGuid_ThenReturnsConverted
✔️ WhenCreateWithKnownEntity_ThenReturnsId
✔️ WhenCreateWithUnknownEntityType_ThenReturnsGuid
✔️ WhenIsValidWithAnonymousUserId_ThenReturnsTrue
✔️ WhenIsValidWithInvalidPrefix_ThenReturnsFalse
✔️ WhenIsValidWithKnownPrefix_ThenReturnsTrue
✔️ WhenIsValidWithKnownSupportedPrefix_ThenReturnsTrue
✔️ WhenIsValidWithTooLongRandomPart_ThenReturnsFalse
✔️ WhenIsValidWithTooShortId_ThenReturnsFalse
✔️ WhenIsValidWithTooShortRandomPart_ThenReturnsFalse
✔️ WhenIsValidWithUnknownPrefix_ThenReturnsTrue

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_07.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_07[1].trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_09.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_12.trx

1 tests were completed in 3s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CarsApi.IntegrationTests.CarsApiSpec 1✔️ 972ms

✔️ CarsApi.IntegrationTests.CarsApiSpec

✔️ WhenGetCar_ThenReturnsCar

❌ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_13.trx

17 tests were completed in 7s with 16 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.WebApi.Common.IntegrationTests.TestingWebApiSpec 16✔️ 1❌ 2s

❌ Infrastructure.WebApi.Common.IntegrationTests.TestingWebApiSpec

✔️ WhenGetError_ThenReturnsError
✔️ WhenGetThrowsException_ThenReturnsServerError
✔️ WhenGetUnvalidatedRequest_ThenReturns200
✔️ WhenGetUnvalidatedRequest_ThenReturnsJsonByDefault
✔️ WhenGetValidatedRequestWithInvalidId_ThenReturnsValidationError
✔️ WhenGetWithAcceptForJson_ThenReturnsJsonResponse
✔️ WhenGetWithAcceptForUnsupported_ThenReturns415
✔️ WhenGetWithAcceptForXml_ThenReturnsXmlResponse
✔️ WhenGetWithFormatForJson_ThenReturnsJsonResponse
✔️ WhenGetWithFormatForUnsupported_ThenReturns415
✔️ WhenGetWithFormatForXml_ThenReturnsXmlResponse
✔️ WhenGetWithNoAcceptAndNoFormat_ThenReturnsJsonResponse
✔️ WhenPostWithDifferentDataTypesForJson_ThenReturnsValues
❌ WhenPostWithDifferentDataTypesForXml_ThenReturnsValues
	Expected string to be "<?xml version="1.0" encoding="utf-8"?><DataTypesTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-09-27T03:23:13.6427590Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-09-27T02:23:13.6427590Z</Time></DataTypesTestingOnlyResponse>" with a length of 479, but "<?xml version="1.0" encoding="utf-8"?><DataTypesTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-09-27T03:23:13.642759Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-09-27T02:23:13.642759Z</Time></DataTypesTestingOnlyResponse>" has a length of 477, differs near "Z</" (index 295).
✔️ WhenPostWithIso8601DateTime_ThenReturnsUnixTimestamp
✔️ WhenPostWithLowercaseEnum_ThenReturnsCamelcased
✔️ WhenPostWithUnixSecondsDateTime_ThenReturnsUnixTimestamp

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_14.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_15.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_17.trx

No tests found

✔️ src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_17[1].trx

No tests found

Annotations

Check failure on line 256 in src/Infrastructure.WebApi.Common.IntegrationTests/TestingWebApiSpec.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.WebApi.Common.IntegrationTests.TestingWebApiSpec ► WhenPostWithDifferentDataTypesForXml_ThenReturnsValues

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az252-119_2023-09-27_02_23_13.trx
Error:
  Expected string to be "<?xml version="1.0" encoding="utf-8"?><DataTypesTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-09-27T03:23:13.6427590Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-09-27T02:23:13.6427590Z</Time></DataTypesTestingOnlyResponse>" with a length of 479, but "<?xml version="1.0" encoding="utf-8"?><DataTypesTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-09-27T03:23:13.642759Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-09-27T02:23:13.642759Z</Time></DataTypesTestingOnlyResponse>" has a length of 477, differs near "Z</" (index 295).
Raw output
Expected string to be "<?xml version="1.0" encoding="utf-8"?><DataTypesTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-09-27T03:23:13.6427590Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-09-27T02:23:13.6427590Z</Time></DataTypesTestingOnlyResponse>" with a length of 479, but "<?xml version="1.0" encoding="utf-8"?><DataTypesTestingOnlyResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Custom><Double>91.1</Double><Enum>TwentyOne</Enum><Integer>91</Integer><String>avalue2</String><Time>2023-09-27T03:23:13.642759Z</Time></Custom><Double>99.9</Double><Enum>OneHundredAndOne</Enum><Integer>9</Integer><String>avalue1</String><Time>2023-09-27T02:23:13.642759Z</Time></DataTypesTestingOnlyResponse>" has a length of 477, differs near "Z</" (index 295).
   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 Infrastructure.WebApi.Common.IntegrationTests.TestingWebApiSpec.WhenPostWithDifferentDataTypesForXml_ThenReturnsValues() in D:\a\saastack\saastack\src\Infrastructure.WebApi.Common.IntegrationTests\TestingWebApiSpec.cs:line 256
--- End of stack trace from previous location ---