public void NewObject()
    {
        var obj = new NSNumberFormatter();

        Assert.AreNotEqual(IntPtr.Zero, obj.ClassHandle);
        Assert.AreNotEqual(IntPtr.Zero, obj.Handle);
    }
 public void MaximumFractionDigits()
 {
     var digits = new NSNumberFormatter().MaximumFractionDigits;
     Assert.AreNotEqual(-1, digits);
 }
 public void ExponentSymbol()
 {
     var symbol = new NSNumberFormatter().ExponentSymbol;
     Assert.AreNotEqual(string.Empty, symbol);
 }
 public void DecimalSeparator()
 {
     var separator = new NSNumberFormatter().DecimalSeparator;
     Assert.AreNotEqual(string.Empty, separator);
 }
 public void CurrencyGroupingSeparator()
 {
     var separator = new NSNumberFormatter().CurrencyGroupingSeparator;
     Assert.AreNotEqual(string.Empty, separator);
 }
 public void AllowsFloats()
 {
     var allowsFloats = new NSNumberFormatter();
     Assert.AreEqual(false, allowsFloats.AllowsFloats);
 }
 public void NumberFromString()
 {
     var numberFromString = new NSNumberFormatter().NumberFromString("1");
     Assert.AreEqual(1, numberFromString);
 }
 public void FormatterBehavior()
 {
     var formatterBehavior = new NSNumberFormatter();
     Assert.AreEqual(NSNumberFormatterBehavior.Version_10_4, formatterBehavior.FormatterBehavior);
 }
 public void NegativePrefix()
 {
     var prefix = new NSNumberFormatter().NegativePrefix;
     Assert.AreNotEqual(string.Empty, prefix);
 }
 public void NegativeFormat()
 {
     var format = new NSNumberFormatter().NegativeFormat;
     Assert.AreNotEqual(string.Empty, format);
 }
 public void MinimumSignificantDigits()
 {
     var digits = new NSNumberFormatter().MinimumSignificantDigits;
     Assert.AreNotSame(-1, digits);
 }
 public void MinimumIntegerDigits()
 {
     var digits = new NSNumberFormatter().MinimumIntegerDigits;
     Assert.AreNotSame(-1, digits);
 }
 public void NewObjectDispose()
 {
     var obj = new NSNumberFormatter();
     obj.Dispose();
 }
 public void MaximumSignificantDigits()
 {
     var digits = new NSNumberFormatter().MaximumSignificantDigits;
     Assert.AreNotEqual(0, digits);
 }
 public void MaximumIntegerDigits()
 {
     var digits = new NSNumberFormatter().MaximumIntegerDigits;
     Assert.AreNotEqual(0, digits);
 }
 public void PositiveSuffix()
 {
     var suffix = new NSNumberFormatter().PositivePrefix;
     Assert.AreEqual(string.Empty, suffix);
 }
 public void RoundingMode()
 {
     var roundingMode = new NSNumberFormatter().RoundingMode;
     roundingMode = NSNumberFormatterRoundingMode.Down;
     Assert.AreEqual(NSNumberFormatterRoundingMode.Down, roundingMode);
 }
 public void NumberStyle()
 {
     var numberStyle = new NSNumberFormatter().NumberStyle;
     numberStyle = NSNumberFormatterStyle.Currency;
     Assert.AreEqual(NSNumberFormatterStyle.Currency, numberStyle);
 }
 public void SecondaryGroupingSize()
 {
     var digits = new NSNumberFormatter().MinimumSignificantDigits;
     Assert.AreNotSame(0, digits);
 }
 public void ObjectSame()
 {
     var a = new NSNumberFormatter();
     var b = Runtime.GetNSObject<NSNumberFormatter>(a.Handle);
     Assert.AreSame(a, b);
 }
 public void StringFromNumber()
 {
     var stringFromNumber = new NSNumberFormatter().StringFromNumber(1);
     Assert.AreEqual("1", stringFromNumber);
 }
 public void PaddingCharacter()
 {
     var symbol = new NSNumberFormatter().PaddingCharacter;
     Assert.AreNotEqual(string.Empty, symbol);
 }
 public void CurrencyCode()
 {
     var currencyCode = new NSNumberFormatter().CurrencyCode;
     Assert.AreNotEqual(string.Empty, currencyCode);
 }
 public void PaddingPosition()
 {
     var paddingPosition = new NSNumberFormatter().PaddingPosition;
     paddingPosition = NSNumberFormatterPadPosition.BeforePrefix;
     Assert.AreEqual(NSNumberFormatterPadPosition.BeforePrefix, paddingPosition);
 }
 public void CurrencySymbol()
 {
     var symbol = new NSNumberFormatter().CurrencySymbol;
     Assert.AreNotEqual(string.Empty, symbol);
 }
 public void PerMillSymbol()
 {
     var symbol = new NSNumberFormatter().PerMillSymbol;
     Assert.AreNotEqual(string.Empty, symbol);
 }
 public void PlusSign()
 {
     var symbol = new NSNumberFormatter().PlusSign;
     Assert.AreNotEqual(string.Empty, symbol);
 }
 public void PositiveInfinitySymbol()
 {
     var symbol = new NSNumberFormatter().PositiveInfinitySymbol;
     Assert.AreNotEqual(string.Empty, symbol);
 }
 public void FormatWidth()
 {
     var formatterWidth = new NSNumberFormatter().FormatWidth;
     Assert.AreEqual(0, formatterWidth);
 }
 public void Locale()
 {
     var locale = new NSNumberFormatter().Locale;
     Assert.IsNotNull(locale);
 }