Commit 95d587f2 authored by Marc Gravell's avatar Marc Gravell

Merge pull request #459 from chilversc/test-isequalto

actual/expected in asserts are the wrong way round
parents f0273d64 9cec8846
...@@ -4,14 +4,14 @@ namespace Dapper.Tests ...@@ -4,14 +4,14 @@ namespace Dapper.Tests
{ {
public static class Assert public static class Assert
{ {
public static void IsEqualTo<T>(this T expected, T actual) public static void IsEqualTo<T>(this T actual, T expected)
{ {
Xunit.Assert.Equal(expected, actual); Xunit.Assert.Equal(expected, actual);
} }
public static void IsSequenceEqualTo<T>(this IEnumerable<T> obj, IEnumerable<T> other) public static void IsSequenceEqualTo<T>(this IEnumerable<T> actual, IEnumerable<T> expected)
{ {
Xunit.Assert.Equal(obj ?? new T[0], other); Xunit.Assert.Equal(expected, actual ?? new T[0]);
} }
public static void IsMoreThan(this int a, int b) public static void IsMoreThan(this int a, int b)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment