mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-28 12:46:54 +08:00
This let's us run the tests much faster and all from Visual Studio, command line, and Appveyor. TODO: Flag missing test methods
44 lines
995 B
C#
44 lines
995 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SqlMapper
|
|
{
|
|
static class Assert
|
|
{
|
|
|
|
public static void IsEqualTo<T>(this T obj, T other)
|
|
{
|
|
Xunit.Assert.Equal(obj, other);
|
|
}
|
|
|
|
public static void IsSequenceEqualTo<T>(this IEnumerable<T> obj, IEnumerable<T> other)
|
|
{
|
|
Xunit.Assert.Equal(obj ?? new T[0], other);
|
|
}
|
|
|
|
public static void Fail()
|
|
{
|
|
Xunit.Assert.True(false, "Expectation failed");
|
|
}
|
|
public static void IsFalse(this bool b)
|
|
{
|
|
Xunit.Assert.False(b);
|
|
}
|
|
|
|
public static void IsTrue(this bool b)
|
|
{
|
|
Xunit.Assert.True(b);
|
|
}
|
|
|
|
public static void IsNull(this object obj)
|
|
{
|
|
Xunit.Assert.Null(obj);
|
|
}
|
|
|
|
public static void IsNotNull(this object obj)
|
|
{
|
|
Xunit.Assert.NotNull(obj);
|
|
}
|
|
}
|
|
}
|