forked from VerifyTests/Verify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ParametersHashSample.cs
42 lines (37 loc) · 1022 Bytes
/
ParametersHashSample.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#region UseParametersHashXunit
public class ParametersHashSample
{
[Theory]
[InlineData("Value1")]
[InlineData("Value2")]
public Task UseHashedParametersUsage(string arg)
{
var settings = new VerifySettings();
settings.UseHashedParameters(arg);
return Verify(arg, settings);
}
[Theory]
[InlineData("Value1")]
[InlineData("Value2")]
public Task UseHashedParametersUsageFluent(string arg) =>
Verify(arg)
.UseHashedParameters(arg);
[Theory]
[InlineData("Value1")]
[InlineData("Value2")]
public Task HashParametersUsage(string arg)
{
var settings = new VerifySettings();
settings.UseParameters(arg);
settings.HashParameters();
return Verify(arg, settings);
}
[Theory]
[InlineData("Value1")]
[InlineData("Value2")]
public Task HashParametersUsageFluent(string arg) =>
Verify(arg)
.UseParameters(arg)
.HashParameters();
}
#endregion