public void Read_ThrowsFileNotFoundException_WhenFileDoesntExist() { //Arrange var file = new LocalFile($@"C:\{Guid.NewGuid()}.txt"); //Act & Assert file.Read(); //Exception }
public async Task ReadAsync_ThrowsFileNotFoundException_WhenFileDoesntExist() { //Arrange var file = new LocalFile($@"C:\{Guid.NewGuid()}.txt"); //Act & Assert await file.ReadAsync(); //Exception }
public void Write_ThrowsArgumentNullException_WhenStreamIsNull() { //Arrange var file = new LocalFile(@"C:\TestPath"); //Act file.Write(null); //Exception }