fix AccountType enum attributes to match the sentence case used in the API responses (#1759)

This commit is contained in:
Ryan Gribble
2018-02-13 23:57:31 +10:00
committed by GitHub
parent bf0688517f
commit 2340f8dcdc
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -20,9 +20,9 @@ namespace Octokit.Tests.Models
{
var stringEnum = new StringEnum<AccountType>(AccountType.Bot);
Assert.Equal("bot", stringEnum.StringValue);
Assert.Equal("Bot", stringEnum.StringValue);
Assert.Equal(AccountType.Bot, stringEnum.Value);
Assert.Equal("bot", stringEnum);
Assert.Equal("Bot", stringEnum);
Assert.Equal(AccountType.Bot, stringEnum);
}
@@ -126,7 +126,7 @@ namespace Octokit.Tests.Models
{
StringEnum<AccountType> stringEnum = AccountType.Bot;
Assert.Equal("bot", stringEnum.StringValue);
Assert.Equal("Bot", stringEnum.StringValue);
Assert.Equal(AccountType.Bot, stringEnum.Value);
}
+3 -3
View File
@@ -7,19 +7,19 @@ namespace Octokit
/// <summary>
/// User account
/// </summary>
[Parameter(Value = "user")]
[Parameter(Value = "User")]
User,
/// <summary>
/// Organization account
/// </summary>
[Parameter(Value = "organization")]
[Parameter(Value = "Organization")]
Organization,
/// <summary>
/// Bot account
/// </summary>
[Parameter(Value = "bot")]
[Parameter(Value = "Bot")]
Bot
}
}