public void ReadFileOkDefaultAssembly() { var movies = EmbeddedFileUtility.ReadFile("Files.Movies.json"); Assert.AreEqual(true, movies.ContainsInvariant("Enter the Dragon")); Assert.AreEqual(true, movies.ContainsInvariant("Kill Bill")); Assert.AreEqual(true, movies.ContainsInvariant("Terminator")); }
public void ReadFileOkSpecifiedAssembly() { var movies = EmbeddedFileUtility.ReadFile("Files.Movies.json", typeof(EmbeddedFileUtilityTest).Assembly); Assert.AreEqual(true, movies.ContainsInvariant("Enter the Dragon")); Assert.AreEqual(true, movies.ContainsInvariant("Kill Bill")); Assert.AreEqual(true, movies.ContainsInvariant("Terminator")); }
public void ReadFileFileNotFoundException() { EmbeddedFileUtility.ReadFile("Files.UnexistingFile.txt"); }