package org.inventivetalent.npclib.test;

import org.inventivetalent.npclib.skin.SkinLayer;
import org.junit.Test;

import java.util.List;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

public class SkinLayerTest {

	@Test
	public void skinLayerValueTest() {
		int value = SkinLayer.getValue(new SkinLayer[] {
				SkinLayer.CAPE,
				SkinLayer.LEFT_SLEEVE,
				SkinLayer.RIGHT_PANTS_LEG });
		assertEquals(37, value);

		List<SkinLayer> layers = (List<SkinLayer>) SkinLayer.getLayers(value);
		assertTrue(layers.contains(SkinLayer.CAPE));
		assertTrue(layers.contains(SkinLayer.LEFT_SLEEVE));
		assertTrue(layers.contains(SkinLayer.RIGHT_PANTS_LEG));
	}

}

@@ -691,10 +691,102 @@
 ));%0A%09%7D%0A%0A
+%09@Test%0A%09public void allTest() %7B%0A%09%09assertEquals(127, SkinLayer.getValue(SkinLayer.ALL));%0A%09%7D%0A%0A
 %7D%0A

add allTest