Example #1
0
        public void FormatAngularAcceleration()
        {
            var value = AngularAcceleration.FromDegreesPerSecondSquared(1.2);

            using (Thread.CurrentThread.UsingTempCulture(CultureInfo.InvariantCulture))
            {
                Assert.AreEqual("1.2°/s²", value.ToString(AngularAccelerationUnit.DegreesPerSecondSquared));
            }
        }
Example #2
0
        public void FormatAngularAcceleration()
        {
            var value = AngularAcceleration.FromDegreesPerSecondSquared(1.2);
            using (Thread.CurrentThread.UsingTempCulture(CultureInfo.InvariantCulture))
            {
#pragma warning disable CA1305 // Specify IFormatProvider
                Assert.AreEqual("1.2°/s²", value.ToString(AngularAccelerationUnit.DegreesPerSecondSquared));
#pragma warning restore CA1305 // Specify IFormatProvider
            }
        }