public void GetUploadLimit(PremiumTier tier, ulong factor) { var guild = Mock.Of <IGuild>(g => g.PremiumTier == tier); var expected = factor * (ulong)Math.Pow(2, 20); var actual = GuildHelper.GetUploadLimit(guild); actual.Should().Be(expected); }
public Guild(Snowflake id, string name, string?icon, string?splash, string?discoverySplash, bool?owner, Snowflake ownerId, PermissionFlags?permissions, string region, Snowflake?afkChannelId, int afkTimeout, bool?embedEnabled, Snowflake?embedChannelId, VerificationLevel verificationLevel, MessageNotificationLevel defaultMessageNotifictations, ExplicitContentFilterLevel explicitContentFilter, Role[] roles, Emoji[] emojis, string[] features, MFALevel mfaLevel, Snowflake?applicationId, bool?widgedEnabled, Snowflake?widgedChnanelId, Snowflake?systemChannelId, SystemChannelFlags systemChannelFlags, Snowflake?rulesChannelId, DateTime?joinedAt, bool?large, bool?unavailable, int?memberCount, VoiceState[] voiceStates, GuildMember[] members, Channel[] channels, Presence[] presences, int?maxPresences, int?maxMembers, string?vanityUrlCode, string?description, string?banner, PremiumTier premiumTier, int?premiumSubscriptionCount, string prefferedLocale, Snowflake?publicUpdatesChannelId) { Id = id; Name = name; Icon = icon; Splash = splash; DiscoverySplash = discoverySplash; Owner = owner; OwnerId = ownerId; Permissions = permissions; Region = region; AfkChannelId = afkChannelId; AfkTimeout = afkTimeout; EmbedEnabled = embedEnabled; EmbedChannelId = embedChannelId; VerificationLevel = verificationLevel; DefaultMessageNotifictations = defaultMessageNotifictations; ExplicitContentFilter = explicitContentFilter; Roles = roles; Emojis = emojis; Features = features; MFALevel = mfaLevel; ApplicationId = applicationId; WidgedEnabled = widgedEnabled; WidgedChnanelId = widgedChnanelId; SystemChannelId = systemChannelId; SystemChannelFlags = systemChannelFlags; RulesChannelId = rulesChannelId; JoinedAt = joinedAt; Large = large; Unavailable = unavailable; MemberCount = memberCount; VoiceStates = voiceStates; Members = members; Channels = channels; Presences = presences; MaxPresences = maxPresences; MaxMembers = maxMembers; VanityUrlCode = vanityUrlCode; Description = description; Banner = banner; PremiumTier = premiumTier; PremiumSubscriptionCount = premiumSubscriptionCount; PrefferedLocale = prefferedLocale; PublicUpdatesChannelId = publicUpdatesChannelId; }