Repository navigation
Open
Labels
arch-wasmWebAssembly architecturearea-System.Collectionsdisabled-testThe test is disabled in source code against the issueos-iosApple iOStest-failuretrimming-for-aot`EnableAggressiveTrimming=true` used for running tests with AOT
Milestone
Description
[01:53:09] fail: [FAIL] System.Collections.ObjectModel.Tests.ReadOnlyDictionaryTests.DebuggerAttribute_NullDictionary_ThrowsArgumentNullException
[01:53:09] info: Assert.Throws() Failure
[01:53:09] info: Expected: typeof(System.Reflection.TargetInvocationException)
[01:53:09] info: Actual: typeof(System.InvalidOperationException): Expected one DebuggerTypeProxyAttribute on System.Collections.ObjectModel.ReadOnlyDictionary`2[System.Int32,System.Int32].
[01:53:09] info: ---- System.InvalidOperationException : Expected one DebuggerTypeProxyAttribute on System.Collections.ObjectModel.ReadOnlyDictionary`2[System.Int32,System.Int32].
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.GetProxyType(Type type, Type[] genericTypeArguments)
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Type[] genericTypeArguments, Object obj)
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Object obj)
[01:53:09] info: at System.Collections.ObjectModel.Tests.ReadOnlyDictionaryTests.<>c.<DebuggerAttribute_NullDictionary_ThrowsArgumentNullException>b__13_0()
[01:53:09] info: ----- Inner Stack Trace -----
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.GetProxyType(Type type, Type[] genericTypeArguments)
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Type[] genericTypeArguments, Object obj)
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Object obj)
[01:53:09] info: at System.Collections.ObjectModel.Tests.ReadOnlyDictionaryTests.<>c.<DebuggerAttribute_NullDictionary_ThrowsArgumentNullException>b__13_0()
[01:53:09] fail: [FAIL] System.Collections.ObjectModel.Tests.ReadOnlyDictionaryTests.DebuggerAttribute_NullDictionaryKeys_ThrowsArgumentNullException
[01:53:09] info: Assert.Throws() Failure
[01:53:09] info: Expected: typeof(System.Reflection.TargetInvocationException)
[01:53:09] info: Actual: typeof(System.InvalidOperationException): Expected one DebuggerTypeProxyAttribute on System.Collections.ObjectModel.ReadOnlyDictionary`2+KeyCollection[System.Int32,System.Int32].
[01:53:09] info: ---- System.InvalidOperationException : Expected one DebuggerTypeProxyAttribute on System.Collections.ObjectModel.ReadOnlyDictionary`2+KeyCollection[System.Int32,System.Int32].
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.GetProxyType(Type type, Type[] genericTypeArguments)
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Type[] genericTypeArguments, Object obj)
[01:53:09] info: at System.Collections.ObjectModel.Tests.ReadOnlyDictionaryTests.<>c.<DebuggerAttribute_NullDictionaryKeys_ThrowsArgumentNullException>b__14_0()
[01:53:09] info: ----- Inner Stack Trace -----
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.GetProxyType(Type type, Type[] genericTypeArguments)
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Type[] genericTypeArguments, Object obj)
[01:53:09] info: at System.Collections.ObjectModel.Tests.ReadOnlyDictionaryTests.<>c.<DebuggerAttribute_NullDictionaryKeys_ThrowsArgumentNullException>b__14_0()
[01:53:09] fail: [FAIL] System.Collections.ObjectModel.Tests.ReadOnlyDictionaryTests.DebuggerAttributeTests
[01:53:09] info: System.InvalidOperationException : Expected one DebuggerDisplayAttribute on System.Collections.ObjectModel.ReadOnlyDictionary`2[System.Int32,System.Int32].
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerDisplayReferences(Object obj)
[01:53:09] info: at System.Collections.ObjectModel.Tests.ReadOnlyDictionaryTests.DebuggerAttributeTests()
[01:53:09] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[01:53:09] fail: [FAIL] System.Collections.ObjectModel.Tests.ConstructorAndPropertyTests.DebuggerAttributeTests
[01:53:09] info: System.InvalidOperationException : Expected one DebuggerDisplayAttribute on System.Collections.ObjectModel.ObservableCollection`1[System.Int32].
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerDisplayReferences(Object obj)
[01:53:09] info: at System.Collections.ObjectModel.Tests.ConstructorAndPropertyTests.DebuggerAttributeTests()
[01:53:09] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[01:53:09] fail: [FAIL] System.Collections.ObjectModel.Tests.ConstructorAndPropertyTests.DebuggerAttribute_NullCollection_ThrowsArgumentNullException
[01:53:09] info: Assert.Throws() Failure
[01:53:09] info: Expected: typeof(System.Reflection.TargetInvocationException)
[01:53:09] info: Actual: typeof(System.InvalidOperationException): Expected one DebuggerTypeProxyAttribute on System.Collections.ObjectModel.ObservableCollection`1[System.Int32].
[01:53:09] info: ---- System.InvalidOperationException : Expected one DebuggerTypeProxyAttribute on System.Collections.ObjectModel.ObservableCollection`1[System.Int32].
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.GetProxyType(Type type, Type[] genericTypeArguments)
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Type[] genericTypeArguments, Object obj)
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Object obj)
[01:53:09] info: at System.Collections.ObjectModel.Tests.ConstructorAndPropertyTests.<>c.<DebuggerAttribute_NullCollection_ThrowsArgumentNullException>b__11_0()
[01:53:09] info: ----- Inner Stack Trace -----
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.GetProxyType(Type type, Type[] genericTypeArguments)
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Type[] genericTypeArguments, Object obj)
[01:53:09] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Object obj)
[01:53:09] info: at System.Collections.ObjectModel.Tests.ConstructorAndPropertyTests.<>c.<DebuggerAttribute_NullCollection_ThrowsArgumentNullException>b__11_0()
[01:53:20] fail: [FAIL] System.Collections.ObjectModel.Tests.ObservableCollection_Serialization.OnDeserialized_MonitorNotInitialized_ExpectSuccess
[01:53:20] info: Assert.NotNull() Failure
[01:53:20] info: at System.Collections.ObjectModel.Tests.ObservableCollection_Serialization.OnDeserialized_MonitorNotInitialized_ExpectSuccess()
[01:53:20] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[01:53:21] fail: [FAIL] System.Collections.ObjectModel.Tests.ReadOnlyObservableCollectionTests.DebuggerAttribute_Tests
[01:53:21] info: System.InvalidOperationException : Expected one DebuggerDisplayAttribute on System.Collections.ObjectModel.ReadOnlyObservableCollection`1[System.Int32].
[01:53:21] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerDisplayReferences(Object obj)
[01:53:21] info: at System.Collections.ObjectModel.Tests.ReadOnlyObservableCollectionTests.DebuggerAttribute_Tests()
[01:53:21] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[01:53:21] fail: [FAIL] System.Collections.ObjectModel.Tests.ReadOnlyObservableCollectionTests.DebuggerAttribute_NullCollection_ThrowsArgumentNullException
[01:53:21] info: Assert.Throws() Failure
[01:53:21] info: Expected: typeof(System.Reflection.TargetInvocationException)
[01:53:21] info: Actual: typeof(System.InvalidOperationException): Expected one DebuggerTypeProxyAttribute on System.Collections.ObjectModel.ReadOnlyObservableCollection`1[System.Int32].
[01:53:21] info: ---- System.InvalidOperationException : Expected one DebuggerTypeProxyAttribute on System.Collections.ObjectModel.ReadOnlyObservableCollection`1[System.Int32].
[01:53:21] info: at System.Diagnostics.DebuggerAttributes.GetProxyType(Type type, Type[] genericTypeArguments)
[01:53:21] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Type[] genericTypeArguments, Object obj)
[01:53:21] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Object obj)
[01:53:21] info: at System.Collections.ObjectModel.Tests.ReadOnlyObservableCollectionTests.<>c.<DebuggerAttribute_NullCollection_ThrowsArgumentNullException>b__10_0()
[01:53:21] info: ----- Inner Stack Trace -----
[01:53:21] info: at System.Diagnostics.DebuggerAttributes.GetProxyType(Type type, Type[] genericTypeArguments)
[01:53:21] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Type[] genericTypeArguments, Object obj)
[01:53:21] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerTypeProxyProperties(Type type, Object obj)
[01:53:21] info: at System.Collections.ObjectModel.Tests.ReadOnlyObservableCollectionTests.<>c.<DebuggerAttribute_NullCollection_ThrowsArgumentNullException>b__10_0()
[01:53:21] info: Finished: System.ObjectModel.Tests.dll
[01:53:21] info:
[01:53:21] info: === TEST EXECUTION SUMMARY ===
[01:53:21] info: Total: 2152, Errors: 0, Failed: 8, Skipped: 4, Time: 24.01992s
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architecturearea-System.Collectionsdisabled-testThe test is disabled in source code against the issueos-iosApple iOStest-failuretrimming-for-aot`EnableAggressiveTrimming=true` used for running tests with AOT
Activity
jkotas commentedon Aug 4, 2022
We have
PlatformDetection.IsDebuggerTypeProxyAttributeSupported. If it is not done already, it should get wired in for wasm and the tests marked with it[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsDebuggerTypeProxyAttributeSupported))].jkotas commentedon Aug 4, 2022
Updating area label - the failing tests are under System.Collections.
14 remaining items
ilonatommy commentedon Jul 24, 2023
Still failing, I will take a look
ilonatommy commentedon Jul 24, 2023
I do not see a point to expect from
Activator.CreateInstance(proxyType, obj)to throw whenobj == null. When obj is null then the Activator uses the "the constructor that takes no parameters (the parameterless constructor)" andObservableCollectionhas a parentless one. From this reason I am changing the expected behavior in the tests to throw whencustomAttributes.Lentgh != 1(in the failing tests it's 0).edit: the change of exception type is not the right solution, instead we probably should not have 0 Length of custom attributes.
[-][wasm][eat] System.Diagnostics trimming out DebuggerTypeProxyAttribute.[/-][+][trimming] System.Diagnostics trimming out DebuggerTypeProxyAttribute.[/+]kotlarmilos commentedon Mar 21, 2024
The failures are still relevant.