﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DNTPersianUtils.Core.Tests
{
    [TestClass]
    public class PersianNumbersUtilsTests
    {
        [TestMethod]
        public void Test_ToPersianNumbers_Works()
        {
            var actual = 123.ToPersianNumbers();
            Assert.AreEqual(expected: "۱۲۳", actual: actual);
        }
    }
}
﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DNTPersianUtils.Core.Tests
{
    [TestClass]
    public class PersianNumbersUtilsTests
    {
        [TestMethod]
        public void Test_English_ToPersianNumbers_Works()
        {
            var actual = 123.ToPersianNumbers();
            Assert.AreEqual(expected: "۱۲۳", actual: actual);
        }

        [TestMethod]
        public void Test_Arabic_ToPersianNumbers_Works()
        {
            var actual = "\u06F1\u06F2\u06F3".ToPersianNumbers();
            Assert.AreEqual(expected: "۱۲۳", actual: actual);
        }

        [TestMethod]
        public void Test_Persian_ToEnglishNumbers_Works()
        {
            var actual = "١٢٣".ToEnglishNumbers();
            Assert.AreEqual(expected: "123", actual: actual);
        }

        [TestMethod]
        public void Test_Arabic_ToEnglishNumbers_Works()
        {
            var actual = "\u06F1\u06F2\u06F3".ToEnglishNumbers();
            Assert.AreEqual(expected: "123", actual: actual);
        }
    }
}
Add more unit tests for ToPersianNumbers and ToEnglishNumbers.
 Add more unit tests for ToPersianNumbers and ToEnglishNumbers.
