You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to use FluentAssertions on a Xamarin project (Android), running in a custom-made test engine. While trying to assert something, I'm getting this error:
`System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize`
02-25 02:42:35.008 D/Mono (18235): Assembly Ref addref FluentAssertions[0xdff7e940] -> System.Configuration.ConfigurationManager[0xdff7eee0]: 2
�[41m�[30mfail�[39m�[22m�[49m: Windows.UI.Core.CoreDispatcher[0]
Dispatcher unhandled exception
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.Configuration.ClientConfigPaths..ctor (System.String exePath, System.Boolean includeUserConfig) [0x00050] in <4cd8a957e7664f4a9e27ce43dd1afeb7>:0
at System.Configuration.ClientConfigPaths.GetPaths (System.String exePath, System.Boolean includeUserConfig) [0x00018] in <4cd8a957e7664f4a9e27ce43dd1afeb7>:0
at System.Configuration.ClientConfigurationHost.get_ConfigPaths () [0x0000a] in <4cd8a957e7664f4a9e27ce43dd1afeb7>:0
at System.Configuration.ClientConfigurationHost.GetStreamName (System.String configPath) [0x0006d] in <4cd8a957e7664f4a9e27ce43dd1afeb7>:0
at System.Configuration.ClientConfigurationHost.02-25 02:42:41.664 I/mono-stdout(18235): �[41m�[30mfail�[39m�[22m�[49m: Windows.UI.Core.CoreDispatcher[0]
Complete minimal example reproducing the issue
Add FluentAssertions to any Xamarin project and try to assert something.
Expected behavior:
It should work on any netstandard platform. In this case it seems to be netstandard2.1.
Actual behavior:
The configuration doesn't seem to work. On platform without configuration it should fallback to default values.
Versions
Which version of Fluent Assertions are you using? 5.6.0
Which .NET runtime and version are you targeting? E.g. .NET framework 4.6.1 or .NET Core 2.1. MonoAndroid 9.0
Additional Information
It's used in THIS PROJECT to run unit tests on all supported platforms (iOS, Android and Mono-Wasm).
The text was updated successfully, but these errors were encountered:
Problem
Try to use
FluentAssertions
on a Xamarin project (Android), running in a custom-made test engine. While trying to assert something, I'm getting this error:`System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize`
Complete minimal example reproducing the issue
Add
FluentAssertions
to any Xamarin project and try to assert something.Expected behavior:
It should work on any
netstandard
platform. In this case it seems to benetstandard2.1
.Actual behavior:
The configuration doesn't seem to work. On platform without configuration it should fallback to default values.
Versions
5.6.0
MonoAndroid 9.0
Additional Information
It's used in THIS PROJECT to run unit tests on all supported platforms (iOS, Android and Mono-Wasm).
The text was updated successfully, but these errors were encountered: