mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
fix AccountType enum attributes to match the sentence case used in the API responses (#1759)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user