public void TestGetEmbeddedFile_ThrowsForUnknownFile() { const string expectedResourceName = "Unknown/File.txt"; var e = Assert.ThrowsException <FileNotFoundException>(() => RemotePowerShellUtils.GetEmbeddedFile(expectedResourceName)); Assert.AreEqual(expectedResourceName, e.Message); }
public void TestGetEmbeddedFile_GetFile() { string result = RemotePowerShellUtils.GetEmbeddedFile(InstallerPsResourcePath); Assert.AreEqual(File.ReadAllText(InstallerPsFilePath), result); }