コード例 #1
0
 public void LongOneTest()
 {
     long oneLong = 1;
     string oneString = "1001";
     FourSlotPrinterNumber zero = new FourSlotPrinterNumber(oneLong);
     Assert.That(zero.ToLong(), Is.EqualTo(oneLong));
     Assert.That(zero.ToString(), Is.EqualTo(oneString));
 }
コード例 #2
0
 public void LongNineTest()
 {
     long nineLong = 9;
     string nineString = "1009";
     FourSlotPrinterNumber zero = new FourSlotPrinterNumber(nineLong);
     Assert.That(zero.ToLong(), Is.EqualTo(nineLong));
     Assert.That(zero.ToString(), Is.EqualTo(nineString));
 }
コード例 #3
0
 public void LongZeroTest()
 {
     long zeroLong = 0;
     string zeroString = "1000";
     FourSlotPrinterNumber zero = new FourSlotPrinterNumber(zeroLong);
     Assert.That(zero.ToLong(), Is.EqualTo(zeroLong));
     Assert.That(zero.ToString(), Is.EqualTo(zeroString));
 }