four of them pass

This commit is contained in:
Brendan Forster
2014-12-14 21:47:39 +09:30
parent 7d545754a7
commit 2b2fa1c5e3
3 changed files with 8 additions and 2 deletions
@@ -16,7 +16,7 @@ namespace Octokit.Tests.Conventions
}
[Theory]
[ClassData(typeof(ClientInterfaces))]
[InlineData(typeof(ClientInterfaces))]
public void CheckModelsForDebuggerDisplayAttribute(Type clientInterface)
{
var methods = clientInterface.GetMethods();
@@ -13,7 +13,7 @@ namespace Octokit.Tests.Conventions
public class SyncObservableClients
{
[Theory]
[ClassData(typeof(ClientInterfaces))]
[InlineData(typeof(ClientInterfaces))]
public void CheckObservableClients(Type clientInterface)
{
var observableClient = clientInterface.GetObservableClientInterface();
+6
View File
@@ -10,6 +10,12 @@ namespace Octokit.Tests.Helpers
{
public static class AssertEx
{
public static void WithMessage(Action assert, string message)
{
// TODO: we should just :fire: this to the ground
assert();
}
public static void HasAttribute<TAttribute>(MemberInfo memberInfo, bool inherit = false) where TAttribute : Attribute
{
Assert.True(memberInfo.IsDefined(typeof(TAttribute), inherit), memberInfo.ToString() + Environment.NewLine);