Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1401,16 +1401,14 @@ private void DeserializeCompoundProperty(WorkflowMarkupSerializationManager seri

if (propValue != null && propValue.GetType() == typeof(string) && ((string)propValue).StartsWith("{}", StringComparison.Ordinal))
propValue = ((string)propValue).Substring(2);
if (property != null)

try
{
try
{
property.SetValue(obj, propValue, null);
}
catch
{
serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerComplexPropertySetFailed, new object[] { propertyName, propertyName, obj.GetType().Name })));
}
property.SetValue(obj, propValue, null);
}
catch
{
serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerComplexPropertySetFailed, new object[] { propertyName, propertyName, obj.GetType().Name })));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,24 +373,6 @@ public void Equals_WithDifferentUnifiedAssemblyName_ReturnsFalse()
Assert.False(result);
}

[Fact]
[SuppressMessage("Style", "CA1062:Validate arguments of public methods", Justification = "Testing explicit null handling")]
public void Equals_WithNull_ReturnsFalse()
{
// Arrange
var mapping = new WorkflowMarkupSerializerMapping(
"prefix",
"http://test.namespace.com",
"TestNamespace",
"TestAssembly");

// Act
var result = mapping.Equals(null);

// Assert
Assert.False(result);
}

[Fact]
public void Equals_WithSameUnifiedAssemblyName_ReturnsTrue()
{
Expand Down