Exemplo n.º 1
0
        public void can_retrieve_data_from_package()
        {
            var text = "not the right thing";

            theFiles.ForData("1.txt", (name, data) =>
            {
                name.ShouldEqual("1.txt");
                text = new StreamReader(data).ReadToEnd();
            });

            // The text of this file in the AssemblyPackage data is just "1"
            text.ShouldEqual("1");
        }
Exemplo n.º 2
0
 public void ForData(string searchPattern, Action <string, Stream> dataCallback)
 {
     _files.ForData(searchPattern, dataCallback);
 }