Exemplo n.º 1
0
 public void TestConstructor()
 {
     var info = new NodaFormatInfo(enUs);
     Assert.AreSame(enUs, info.CultureInfo);
     Assert.NotNull(info.DateTimeFormat);
     Assert.AreEqual(":", info.TimeSeparator);
     Assert.AreEqual("/", info.DateSeparator);
     Assert.IsInstanceOf<string>(info.OffsetPatternLong);
     Assert.IsInstanceOf<string>(info.OffsetPatternMedium);
     Assert.IsInstanceOf<string>(info.OffsetPatternShort);
     Assert.AreEqual("NodaFormatInfo[en-US]", info.ToString());
 }
Exemplo n.º 2
0
        public void TestConstructor()
        {
            var info = new NodaFormatInfo(enUs);

            Assert.AreSame(enUs, info.CultureInfo);
            Assert.NotNull(info.DateTimeFormat);
            Assert.AreEqual(":", info.TimeSeparator);
            Assert.AreEqual("/", info.DateSeparator);
            Assert.IsInstanceOf <string>(info.OffsetPatternLong);
            Assert.IsInstanceOf <string>(info.OffsetPatternMedium);
            Assert.IsInstanceOf <string>(info.OffsetPatternShort);
            Assert.AreEqual("NodaFormatInfo[en-US]", info.ToString());
        }
Exemplo n.º 3
0
 public void TestConstructor()
 {
     var info = new NodaFormatInfo(enUs);
     Assert.AreSame(enUs, info.CultureInfo);
     Assert.NotNull(info.NumberFormat);
     Assert.NotNull(info.DateTimeFormat);
     Assert.AreEqual(".", info.DecimalSeparator);
     Assert.AreEqual("+", info.PositiveSign);
     Assert.AreEqual("-", info.NegativeSign);
     Assert.AreEqual(":", info.TimeSeparator);
     Assert.AreEqual("/", info.DateSeparator);
     Assert.IsFalse(info.IsReadOnly);
     Assert.IsInstanceOf<string>(info.OffsetPatternFull);
     Assert.IsInstanceOf<string>(info.OffsetPatternLong);
     Assert.IsInstanceOf<string>(info.OffsetPatternMedium);
     Assert.IsInstanceOf<string>(info.OffsetPatternShort);
     Assert.AreEqual("NodaFormatInfo[en-US]", info.ToString());
 }