mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 02:45:32 +00:00
four of them pass
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user