public void Correctly_reads_resource_file() { IResourceFileLocator locator = new ResourceFileLocator(); string contents = locator.ReadTextFile(_testAssembly, string.Format(_resourceTemplate, "Sample.tab")); Assert.IsTrue(contents.Contains("Tarantino")); }
public void Correctly_throws_exception_when_resource_name_not_found() { IResourceFileLocator locator = new ResourceFileLocator(); locator.ReadTextFile(_testAssembly, "BadResource.txt"); }