コード例 #1
0
 @Test // SellIn Test
 public void LegendaryItemSellInTest() throws Exception {
   LegendaryItem var = new LegendaryItem("blabla", 0, 20);
   var.staticQuality();
   Assert.assertEquals(0, var.getSellIn());
 }
コード例 #2
0
 @Test // Quality Test
 public void LegendaryItemQualityTest() throws Exception {
   LegendaryItem var = new LegendaryItem("Sulfuras, Hand of Ragnaros", 0, 80);
   var.staticQuality();
   Assert.assertEquals(80, var.getQuality());
 }