-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTheory - Cache Patterns.snippet
50 lines (48 loc) · 1.49 KB
/
Theory - Cache Patterns.snippet
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
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>Theory - Cache Patterns</Title>
<Author>
</Author>
<Description>
</Description>
<HelpUrl>
</HelpUrl>
<Shortcut>tpatterns</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal Editable="true">
<ID>GetCachePatternList</ID>
<ToolTip>GetCachePatternList</ToolTip>
<Default>GetCachePatternList</Default>
<Function>
</Function>
</Literal>
<Literal Editable="true">
<ID>TestClass</ID>
<ToolTip>
</ToolTip>
<Default>TestClass</Default>
<Function>
</Function>
</Literal>
</Declarations>
<Code Language="csharp" Delimiter="$"><![CDATA[[Theory, MemberData(nameof($GetCachePatternList$), MemberType = typeof($TestClass$))]
public void HasExpectedParameters(string key) {
// arrange
var model = MakeModel();
// act
var results = model.CachePatterns
.Any(p => p.Contains(key));
// assert
results.Should()
.BeTrue();
}]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>