Пример #1
0
        public void ConvertToNumber()
        {
            foreach (var n in TestData.RandomNumbers)
            {
                var fnr = new Nin(n);
                var num = long.Parse(n);

                Assert.AreEqual(num, fnr.ToNumber());
            }
        }
Пример #2
0
        private void TestLongConversion(TestData.TestCase n, Nin f)
        {
            var l = Convert.ToInt64(n.Number);

            Assert.AreEqual(l, f.ToNumber(), "ToNumber in " + n.Number);
        }