Skip to content

Commit 510e8e3

Browse files
committed
fixed test
1 parent f0d8db0 commit 510e8e3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • test/Thinktecture.Runtime.Extensions.SourceGenerator.Tests/CodeAnalysis/InstanceMemberInfoTests

test/Thinktecture.Runtime.Extensions.SourceGenerator.Tests/CodeAnalysis/InstanceMemberInfoTests/Equals.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,11 @@ public class TestClass
400400
private readonly int _field;
401401
}
402402
";
403-
var compilation = CreateCompilation(src, additionalReferences: [typeof(MessagePack.MessagePackFormatterAttribute).Assembly.Location]);
403+
var compilation = CreateCompilation(src, additionalReferences:
404+
[
405+
typeof(System.Text.Json.Serialization.JsonConverterAttribute).Assembly.Location,
406+
typeof(MessagePack.MessagePackFormatterAttribute).Assembly.Location
407+
]);
404408
var factory = TypedMemberStateFactory.Create(compilation);
405409
var type = GetTypeSymbol(compilation, "Test.TestClass");
406410
var field = (IFieldSymbol)type.GetMembers("_field").First();

0 commit comments

Comments
 (0)