Ejemplo n.º 1
0
 public void read_contents()
 {
     var file = new FubuFile(Path.Combine("Runtime", "Files", "Data", "a.txt"), ContentFolder.Application);
     file.ReadContents().Trim().ShouldEqual("some text from a.txt");
 }
Ejemplo n.º 2
0
        public void read_contents_by_stream()
        {
            var wasCalled = false;
            var file = new FubuFile(Path.Combine("Runtime", "Files", "Data", "a.txt"), ContentFolder.Application);
            file.ReadContents(stream =>
            {
                wasCalled = true;
                stream.ReadAllText().ShouldEqual("some text from a.txt");
            });

            wasCalled.ShouldBeTrue();
        }
Ejemplo n.º 3
0
 public void read_contents()
 {
     var file = new FubuFile(Path.Combine("Runtime", "Files", "Data", "a.txt"));
     file.ReadContents().Trim().ShouldBe("some text from a.txt");
 }