public void TestSub3() { int a = 3, b = 6; int c = NumberSystem8.Sub(a, b); int res = -1 * int.Parse(Convert.ToString(NumberSystem8.From8To10(b) - NumberSystem8.From8To10(a), 8)); Assert.AreEqual(res, c); }
public void TestSub2() { int a = 99, b = 11; Assert.Equals(NumberSystem8.Sub(a, b), typeof(NotSupportedException)); }