Skip to content

Commit 3a6ba79

Browse files
committed
fix tests
1 parent e7c6555 commit 3a6ba79

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ public class TestClass
598598
private readonly int _field;
599599
}
600600
";
601-
var compilation = CreateCompilation(src);
601+
var compilation = CreateCompilation(src, additionalReferences: [typeof(MessagePack.KeyAttribute).Assembly.Location]);
602602
var factory = TypedMemberStateFactory.Create(compilation);
603603
var type = GetTypeSymbol(compilation, "Test.TestClass");
604604

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ public class TestClass
672672
public int Property { get; }
673673
}
674674
";
675-
var compilation = CreateCompilation(src);
675+
var compilation = CreateCompilation(src, additionalReferences: [typeof(MessagePack.KeyAttribute).Assembly.Location]);
676676
var factory = TypedMemberStateFactory.Create(compilation);
677677
var type = GetTypeSymbol(compilation, "Test.TestClass");
678678
var property = (IPropertySymbol)type.GetMembers("Property").First();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ public class TestClass
517517
private readonly int _field2;
518518
}
519519
";
520-
var compilation = CreateCompilation(src);
520+
var compilation = CreateCompilation(src, additionalReferences: [typeof(MessagePack.KeyAttribute).Assembly.Location]);
521521
var factory = TypedMemberStateFactory.Create(compilation);
522522
var type = GetTypeSymbol(compilation, "Test.TestClass");
523523
var field1 = (IFieldSymbol)type.GetMembers("_field1").First();

0 commit comments

Comments
 (0)