Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
77c690fe
Commit
77c690fe
authored
Mar 16, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Moq tests (normalizing line endings as well)
parent
140d741a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
90 additions
and
90 deletions
+90
-90
TransactionWrapperTests.cs
StackExchange.Redis.Tests/TransactionWrapperTests.cs
+90
-90
No files found.
StackExchange.Redis.Tests/TransactionWrapperTests.cs
View file @
77c690fe
...
...
@@ -34,14 +34,14 @@ public void AddCondition_HashNotEqual()
public
void
AddCondition_HashExists
()
{
wrapper
.
AddCondition
(
Condition
.
HashExists
(
"key"
,
"field"
));
mock
.
Verify
(
_
=>
_
.
AddCondition
(
It
.
Is
<
Condition
>(
value
=>
"prefix:key
> field exists"
==
value
.
ToString
())));
mock
.
Verify
(
_
=>
_
.
AddCondition
(
It
.
Is
<
Condition
>(
value
=>
"prefix:key
Hash > field exists"
==
value
.
ToString
())));
}
[
Fact
]
public
void
AddCondition_HashNotExists
()
{
wrapper
.
AddCondition
(
Condition
.
HashNotExists
(
"key"
,
"field"
));
mock
.
Verify
(
_
=>
_
.
AddCondition
(
It
.
Is
<
Condition
>(
value
=>
"prefix:key
> field does not exists"
==
value
.
ToString
())));
mock
.
Verify
(
_
=>
_
.
AddCondition
(
It
.
Is
<
Condition
>(
value
=>
"prefix:key
Hash > field does not exists"
==
value
.
ToString
())));
}
[
Fact
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment