public void WhenFileDoesNotExist_ThenThrowException() { var sut = new FileInfo(Path.Combine(WorkingDir, "DoesntExist")); Assert.Throws <FileNotFoundException>(() => sut.AddExtension(".log")); }