public void ConvertToNumber() { foreach (var n in TestData.RandomNumbers) { var fnr = new Nin(n); var num = long.Parse(n); Assert.AreEqual(num, fnr.ToNumber()); } }
private void TestLongConversion(TestData.TestCase n, Nin f) { var l = Convert.ToInt64(n.Number); Assert.AreEqual(l, f.ToNumber(), "ToNumber in " + n.Number); }