Skip to content

Commit a7a17ea

Browse files
Add helper comments for extending resource validation tests
Co-authored-by: YuliiaKovalova <95473390+YuliiaKovalova@users.noreply.github.com>
1 parent 642a3a1 commit a7a17ea

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Build.UnitTests/Resources_Tests.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ public void AllReferencedResourcesExistInMSBuildAssembly()
115115
new[] { "../Shared/Resources/Strings.shared.resx" });
116116
}
117117

118+
// NOTE: To add verification for additional assemblies, follow this pattern:
119+
// [Fact]
120+
// public void AllReferencedResourcesExistInYourAssembly()
121+
// {
122+
// VerifyResourcesForAssembly(
123+
// "Your.Assembly.Name",
124+
// Path.Combine(GetRepoRoot(), "src", "YourAssemblyFolder"),
125+
// new[] { "Resources/Strings.resx" }, // Primary resources for this assembly
126+
// new[] { "../Shared/Resources/Strings.shared.resx" }); // Shared resources
127+
// }
128+
118129
private void VerifyResourcesForAssembly(
119130
string assemblyName,
120131
string sourceDirectory,

0 commit comments

Comments
 (0)