Get Resource Names
If you use the following, you can resolve all of the resources currently loaded by the current assembly:
string[] resourceNames = GetType().Assembly.GetManifestResourceNames();Load Embedded Resource
Actually loading the Embedded Resource looks like this:
using (Stream stream = assembly.GetManifestResourceStream(
$"ShredVaultKioskTests.API.{filename}.txt"))
{
using (StreamReader reader = new StreamReader(stream))
{
return reader.ReadToEnd();
}
}Make sure the file is where you expect it to be, otherwise use GetManifestResourceNames() to figure it out in reverse. In this example, the test file that is being loaded is in the following directory of the project:

So finally, the resource is at: ShredVaultKioskTests > API > [File].