Skip to content

Commit 626b08f

Browse files
committed
Fix windows-specific paths
1 parent 1fba2af commit 626b08f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/StronglyTypedIds.Tests/TestHelpers.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ internal static class TestHelpers
1717
public static (ImmutableArray<Diagnostic> Diagnostics, string Output) GetGeneratedOutput<T>(string source, bool includeAttributes = true)
1818
where T : IIncrementalGenerator, new()
1919
{
20-
var attr = new StronglyTypedIdAttribute();
2120
var syntaxTree = CSharpSyntaxTree.ParseText(source);
2221
var references = AppDomain.CurrentDomain.GetAssemblies()
2322
.Where(_ => !_.IsDynamic && !string.IsNullOrWhiteSpace(_.Location))
@@ -54,7 +53,7 @@ private static ImmutableArray<AdditionalText> LoadEmbeddedResourcesAsAdditionalT
5453
texts.AddRange(assembly.GetManifestResourceNames()
5554
.Select(name => new TestAdditionalText(
5655
text: LoadEmbeddedResource(assembly, name),
57-
path: $"C:\\test\\Templates\\{Path.GetExtension(Path.GetFileNameWithoutExtension(name)).Substring(1)}.typedid")));
56+
path: Path.Combine("c:", "test", "Templates", Path.GetExtension(Path.GetFileNameWithoutExtension(name)).Substring(1) + ".typedid"))));
5857

5958
return texts.ToImmutable();
6059
}

0 commit comments

Comments
 (0)