Esempio n. 1
0
        public void Should_format_string(string format, string mask)
        {
            var expected = string.Format(Consts.CultureEnUS, mask, 1.757899e2);

            var instance = new Milliradian(1.757899e2);
            var actual   = instance.ToString(format, Consts.CultureEnUS);

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void Should_convert_to_string(double value)
        {
            var expected = $"{value:e} mrad";

            var instance = new Milliradian(value);
            var actual   = instance.ToString();

            Assert.AreEqual(expected, actual);
        }