public void GetLastPart_THOUSAND_Success() { NumberProcessor np = new NumberProcessor(Thousand_TestNumber); int expect = 456; long actual = np.GetLastPart(np.GetFirstPart(np.ONE_THOUSAND), np.ONE_THOUSAND); Assert.AreEqual(expect, actual); }
public void GetLastPart_QUADRILLION_Success() { NumberProcessor np = new NumberProcessor(Quadrillion_TestNumber); long expect = 456789111222333; long actual = np.GetLastPart(np.GetFirstPart(np.ONE_QUADRILLION), np.ONE_QUADRILLION); Assert.AreEqual(expect, actual); }
public void GetLastPart_BILLION_Success() { NumberProcessor np = new NumberProcessor(Billion_TestNumber); int expect = 456789111; long actual = np.GetLastPart(np.GetFirstPart(np.ONE_BILLION), np.ONE_BILLION); Assert.AreEqual(expect, actual); }
public void Process_Hundred_Success() { var np = new NumberProcessor(Hundred_TestNumber); long div = np.GetDivider(); var first = np.GetFirstPart(div); var last = np.GetLastPart(first, div); var translateFirst = new TranslaterManager(first); translateFirst.GetWords(); }