We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b810b10 commit ec580dbCopy full SHA for ec580db
src/Core.Common.LocalizableString.Tests/LocalizableStringJsonConverterTests.cs
@@ -99,19 +99,19 @@ public void DeserializeWrongLocalizableString()
99
{ "es", esText }
100
};
101
102
- // Assert
103
- Assert.Throws<ArgumentException>(() =>
+
+ // Act
104
+ var ls = dict.AsLocalizableString();
105
+ var obj = new TestClass
106
{
- // Act
- var ls = dict.AsLocalizableString();
107
- var obj = new TestClass
108
- {
109
- Name = "name",
110
- Description = ls
111
- };
+ Name = "name",
+ Description = ls
+ };
112
113
- var json = JsonSerializer.Serialize(obj, _jsonSerializerOptions);
114
- });
+ var json = JsonSerializer.Serialize(obj, _jsonSerializerOptions);
+ // Assert
+ Assert.Pass();
115
}
116
117
/// <summary>
0 commit comments