public void ctor_string() { using (var temp = new TempDirectory()) { var file = temp.Info.ToFile("example.txt").FullName; using (var writer = new FileWriter(file)) { Assert.NotNull(writer); } } }
public void op_Write_string() { using (var temp = new TempDirectory()) { const string expected = "example"; var file = temp.Info.ToFile("example.txt"); using (var writer = new FileWriter(file)) { writer.Write(expected); } var actual = file.ReadToEnd(); Assert.Equal(expected, actual); } }