Skip to content

Commit

Permalink
chore: fix some markdown style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fgreinacher committed Sep 11, 2020
1 parent a8f6530 commit 2b3386b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2e777fa545c94767acccd6345b1ed9b7)](https://app.codacy.com/gh/System-IO-Abstractions/System.IO.Abstractions?utm_source=github.com&utm_medium=referral&utm_content=System-IO-Abstractions/System.IO.Abstractions&utm_campaign=Badge_Grade_Dashboard)
[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)

### Just like `System.Web.Abstractions`, but for `System.IO`. Yay for testable IO access!
> ***Just like `System.Web.Abstractions`, but for `System.IO`. Yay for testable IO access!***
At the core of the library is `IFileSystem` and `FileSystem`. Instead of calling methods like `File.ReadAllText` directly, use `IFileSystem.File.ReadAllText`. We have exactly the same API, except that ours is injectable and testable.

dotnet add package System.IO.Abstractions
```shell
dotnet add package System.IO.Abstractions
```

```csharp
public class MyComponent
Expand Down Expand Up @@ -40,7 +42,9 @@ public class MyComponent

The library also ships with a series of test helpers to save you from having to mock out every call, for basic scenarios. They are not a complete copy of a real-life file system, but they'll get you most of the way there.

dotnet add package System.IO.Abstractions.TestingHelpers
```shell
dotnet add package System.IO.Abstractions.TestingHelpers
```

```csharp
[Test]
Expand Down

0 comments on commit 2b3386b

Please sign in to comment.