Skip to content

Commit c503fcd

Browse files
committed
fix tests
1 parent 8805868 commit c503fcd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/Thinktecture.Runtime.Extensions.SourceGenerator.Tests/Extensions/TypeParameterSymbolExtensionsTests/GetGenericTypeParametersTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,8 @@ public class GenericClass<T> where T : notnull, IMyInterface
513513
result.Should().HaveCount(1);
514514
result[0].Name.Should().Be("T");
515515
result[0].Constraints.Should().HaveCount(2);
516-
result[0].Constraints[0].Should().Be("global::Test.IMyInterface");
517-
result[0].Constraints[1].Should().Be("notnull");
516+
result[0].Constraints[0].Should().Be("notnull");
517+
result[0].Constraints[1].Should().Be("global::Test.IMyInterface");
518518
}
519519

520520
[Fact]

test/Thinktecture.Runtime.Extensions.SourceGenerator.Tests/Extensions/TypeSymbolExtensionsTests/ToFullyQualifiedDisplayString.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ public class MyClass
593593
public dynamic Field;
594594
}
595595
";
596-
var compilation = CreateCompilation(src);
596+
var compilation = CreateCompilation(src, additionalReferences: MetadataReference.CreateFromFile(typeof(System.Runtime.CompilerServices.DynamicAttribute).Assembly.Location));
597597
var myClassType = GetTypeSymbol(compilation, "Test.MyClass");
598598
var field = myClassType.GetMembers("Field").OfType<IFieldSymbol>().First();
599599
var type = field.Type;

0 commit comments

Comments
 (0)