public void ReturnsFalseIfExpiryDateIsUnset() { var instance = new Ambassador.Plugins.Moderation.Model.UserBan ( new Server(0), new User(0), new User(1), string.Empty ); Assert.False(instance.IsTemporary); }
public void ReturnsFalseIfExpiryDateIsUnset() { var instance = new Ambassador.Plugins.Moderation.Model.UserBan ( new Server(new Snowflake(0)), new User(new Snowflake(0)), new User(new Snowflake(1)), string.Empty ); Assert.False(instance.ExpiresOn.HasValue); }
public void ReturnsTrueIfExpiryDateIsSet() { var instance = new Ambassador.Plugins.Moderation.Model.UserBan ( new Server(0), new User(0), new User(1), string.Empty, expiresOn: DateTime.UtcNow ); Assert.True(instance.IsTemporary); }
public void ReturnsTrueIfExpiryDateIsSet() { var instance = new Ambassador.Plugins.Moderation.Model.UserBan ( new Server(new Snowflake(0)), new User(new Snowflake(0)), new User(new Snowflake(1)), string.Empty, expiresOn: DateTimeOffset.UtcNow ); Assert.True(instance.ExpiresOn.HasValue); }