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"); }
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(); }
public void read_contents() { var file = new FubuFile(Path.Combine("Runtime", "Files", "Data", "a.txt")); file.ReadContents().Trim().ShouldBe("some text from a.txt"); }