Skip to content

Commit 73fdd1c

Browse files
committed
.
1 parent a010a55 commit 73fdd1c

34 files changed

+77
-245
lines changed

docs/intro.include.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Extends [Verify](https://github.com/VerifyTests/Verify) to allow verification of [System.IO.Abstractions](https://github.com/TestableIO/System.IO.Abstractions) bits.
1+
Extends [Verify](https://github.com/VerifyTests/Verify) to allow verification of [Verify.TestableIO.System.IO.Abstractions](https://github.com/TestableIO/System.IO.Abstractions) bits.

docs/zzz.include.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### Entity Framework Extensions
22

3-
[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=simoncropp&utm_medium=Verify.Serilog) is a major sponsor and is proud to contribute to the development this project.
3+
[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=simoncropp&utm_medium=https://github.com/VerifyTests/Verify.TestableIO.System.IO.Abstractions) is a major sponsor and is proud to contribute to the development this project.
44

5-
[![Entity Framework Extensions](https://raw.githubusercontent.com/VerifyTests/Verify.System.IO.Abstractions/refs/heads/main/docs/zzz.png)](https://entityframework-extensions.net/?utm_source=simoncropp&utm_medium=Verify.System.IO.Abstractions)
5+
[![Entity Framework Extensions](https://raw.githubusercontent.com/VerifyTests/Verify.TestableIO.System.IO.Abstractions/refs/heads/main/docs/zzz.png)](https://entityframework-extensions.net/?utm_source=simoncropp&utm_medium=Verify.TestableIO.System.IO.Abstractions)

readme.md

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# <img src="/src/icon.png" height="30px"> Verify.System.IO.Abstractions
1+
# <img src="/src/icon.png" height="30px"> Verify.TestableIO.System.IO.Abstractions
22

33
[![Discussions](https://img.shields.io/badge/Verify-Discussions-yellow?svg=true&label=)](https://github.com/orgs/VerifyTests/discussions)
4-
[![Build status](https://ci.appveyor.com/api/projects/status/bgvkfjn26l5b4kba?svg=true)](https://ci.appveyor.com/project/SimonCropp/verify-system-io-abstractions)
5-
[![NuGet Status](https://img.shields.io/nuget/v/Verify.System.IO.Abstractions.svg)](https://www.nuget.org/packages/Verify.System.IO.Abstractions/)
4+
[![Build status](https://ci.appveyor.com/api/projects/status/bgvkfjn26l5b4kba?svg=true)](https://ci.appveyor.com/project/SimonCropp/verify-testableio-system-io-abstractions)
5+
[![NuGet Status](https://img.shields.io/nuget/v/Verify.TestableIO.System.IO.Abstractions.svg)](https://www.nuget.org/packages/Verify.TestableIO.System.IO.Abstractions/)
66

7-
Extends [Verify](https://github.com/VerifyTests/Verify) to allow verification of [System.IO.Abstractions](https://github.com/TestableIO/System.IO.Abstractions) bits.<!-- singleLineInclude: intro. path: /docs/intro.include.md -->
7+
Extends [Verify](https://github.com/VerifyTests/Verify) to allow verification of [TestableIO.System.IO.Abstractions](https://github.com/TestableIO/System.IO.Abstractions) bits.<!-- singleLineInclude: intro. path: /docs/intro.include.md -->
88

99
**See [Milestones](../../milestones?state=closed) for release notes.**
1010

@@ -14,14 +14,14 @@ Extends [Verify](https://github.com/VerifyTests/Verify) to allow verification of
1414

1515
### Entity Framework Extensions<!-- include: zzz. path: /docs/zzz.include.md -->
1616

17-
[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=simoncropp&utm_medium=Verify.Serilog) is a major sponsor and is proud to contribute to the development this project.
17+
[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=simoncropp&utm_medium=https://github.com/VerifyTests/Verify.TestableIO.System.IO.Abstractions) is a major sponsor and is proud to contribute to the development this project.
1818

19-
[![Entity Framework Extensions](https://raw.githubusercontent.com/VerifyTests/Verify.System.IO.Abstractions/refs/heads/main/docs/zzz.png)](https://entityframework-extensions.net/?utm_source=simoncropp&utm_medium=Verify.System.IO.Abstractions)<!-- endInclude -->
19+
[![Entity Framework Extensions](https://raw.githubusercontent.com/VerifyTests/Verify.TestableIO.System.IO.Abstractions/refs/heads/main/docs/zzz.png)](https://entityframework-extensions.net/?utm_source=simoncropp&utm_medium=Verify.TestableIO.System.IO.Abstractions)<!-- endInclude -->
2020

2121

2222
## NuGet
2323

24-
* https://nuget.org/packages/Verify.System.IO.Abstractions
24+
* https://nuget.org/packages/TestableIO.System.IO.Abstractions
2525

2626

2727
## Usage
@@ -31,7 +31,7 @@ Extends [Verify](https://github.com/VerifyTests/Verify) to allow verification of
3131
```cs
3232
[ModuleInitializer]
3333
public static void Initialize() =>
34-
VerifySerilog.Initialize();
34+
VerifyTestableIOSystemIOAbstractions.Initialize();
3535
```
3636
<sup><a href='/src/Tests/ModuleInitializer.cs#L6-L12' title='Snippet source file'>snippet source</a> | <a href='#snippet-Enable' title='Start of snippet'>anchor</a></sup>
3737
<!-- endSnippet -->
@@ -40,35 +40,22 @@ public static void Initialize() =>
4040
<a id='snippet-Usage'></a>
4141
```cs
4242
[Test]
43-
public Task Usage()
43+
public async Task Usage()
4444
{
45-
Recording.Start();
46-
47-
var result = Method();
48-
49-
return Verify(result);
50-
}
51-
52-
static string Method()
53-
{
54-
Log.Error("The Message");
55-
return "Result";
45+
IFileSystem fileSystem = new FileSystem();
46+
var fileInfo = fileSystem.FileInfo.New(@"C:\temp\temp.txt");
47+
await Verify(fileInfo);
5648
}
5749
```
58-
<sup><a href='/src/Tests/Tests.cs#L4-L22' title='Snippet source file'>snippet source</a> | <a href='#snippet-Usage' title='Start of snippet'>anchor</a></sup>
50+
<sup><a href='/src/Tests/Tests.cs#L4-L14' title='Snippet source file'>snippet source</a> | <a href='#snippet-Usage' title='Start of snippet'>anchor</a></sup>
5951
<!-- endSnippet -->
6052

6153
Results in:
6254

6355
<!-- snippet: Tests.Usage.verified.txt -->
6456
<a id='snippet-Tests.Usage.verified.txt'></a>
6557
```txt
66-
{
67-
target: Result,
68-
log: {
69-
Error: The Message
70-
}
71-
}
58+
C:\temp\temp.txt
7259
```
73-
<sup><a href='/src/Tests/Tests.Usage.verified.txt#L1-L6' title='Snippet source file'>snippet source</a> | <a href='#snippet-Tests.Usage.verified.txt' title='Start of snippet'>anchor</a></sup>
60+
<sup><a href='/src/Tests/Tests.Usage.verified.txt#L1-L1' title='Snippet source file'>snippet source</a> | <a href='#snippet-Tests.Usage.verified.txt' title='Start of snippet'>anchor</a></sup>
7461
<!-- endSnippet -->

src/Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<Project>
33
<PropertyGroup>
44
<NoWarn>CS1591;CS0649;CS8632;NU1608;NU1109</NoWarn>
5-
<Version>3.2.0</Version>
5+
<Version>1.0.0</Version>
66
<LangVersion>preview</LangVersion>
77
<AssemblyVersion>1.0.0</AssemblyVersion>
8-
<PackageTags>Http, Verify</PackageTags>
9-
<Description>Extends Verify (https://github.com/VerifyTests/Verify) to allow verification of Serilog bits.</Description>
8+
<PackageTags>System.IO.Abstractions, Verify</PackageTags>
9+
<Description>Extends Verify (https://github.com/VerifyTests/Verify) to allow verification of TestableIO.System.IO.Abstractions bits.</Description>
1010
<ResolveAssemblyReferencesSilent>true</ResolveAssemblyReferencesSilent>
1111
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1212
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>

src/Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<PackageVersion Include="Polyfill" Version="8.8.0" />
1010
<PackageVersion Include="ProjectDefaults" Version="1.0.157" />
1111
<PackageVersion Include="TestableIO.System.IO.Abstractions" Version="22.0.15" />
12+
<PackageVersion Include="TestableIO.System.IO.Abstractions.Wrappers" Version="22.0.15" />
1213
<PackageVersion Include="Verify" Version="30.7.3" />
1314
<PackageVersion Include="Verify.DiffPlex" Version="3.1.2" />
1415
<PackageVersion Include="Verify.NUnit" Version="30.7.3" />

src/Tests/GlobalUsings.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
global using Serilog;
2-
global using Serilog.Context;
3-
global using Serilog.Core.Enrichers;
4-
global using Serilog.Events;
1+
// Global using directives
2+
3+
global using System.IO.Abstractions;

src/Tests/ModuleInitializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public static class ModuleInitializer
77

88
[ModuleInitializer]
99
public static void Initialize() =>
10-
VerifySerilog.Initialize();
10+
VerifyTestableIOSystemIOAbstractions.Initialize();
1111

1212
#endregion
1313

src/Tests/Tests.DictionaryValue.verified.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Tests/Tests.Empty.verified.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Tests/Tests.ForContext.verified.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)