Beispiel #1
0
        public void TestGetEmbeddedFile_ThrowsForUnknownFile()
        {
            const string expectedResourceName = "Unknown/File.txt";
            var          e = Assert.ThrowsException <FileNotFoundException>(() => RemotePowerShellUtils.GetEmbeddedFile(expectedResourceName));

            Assert.AreEqual(expectedResourceName, e.Message);
        }
Beispiel #2
0
        public void TestGetEmbeddedFile_GetFile()
        {
            string result = RemotePowerShellUtils.GetEmbeddedFile(InstallerPsResourcePath);

            Assert.AreEqual(File.ReadAllText(InstallerPsFilePath), result);
        }