package com.kickstarter;

import com.kickstarter.libs.utils.KSColorUtils;

import org.junit.Test;

public class KSColorUtilsTest extends KSRobolectricTestCase {
  @Test
  public void testDarken() {
    assertEquals(0xFF1DB75B, KSColorUtils.darken(0xFF2BDE73, 0.2f));
  }

  @Test
  public void testDarkenWithAlpha() {
    assertEquals(0xCC1DB75B, KSColorUtils.darken(0xCC2BDE73, 0.2f));
  }

  @Test
  public void testLighten() {
    assertEquals(0xFF55E58F, KSColorUtils.lighten(0xFF2BDE73, 0.2f));
  }

  @Test
  public void testLightenWithAlpha() {
    assertEquals(0xCC55E58F, KSColorUtils.lighten(0xCC2BDE73, 0.2f));
  }

  @Test
  public void testArtIsLight() {
    assertEquals(true, KSColorUtils.isLight(0xFFFFBDAB));
  }

  @Test
  public void testComicsIsLight() {
    assertEquals(true, KSColorUtils.isLight(0xFFFFFB78));
  }

  @Test
  public void testCraftsIsNotLight() {
    assertEquals(false, KSColorUtils.isLight(0xFFFF81AC));
  }

  @Test
  public void testDanceIsNotLight() {
    assertEquals(false, KSColorUtils.isLight(0xFFA695F9));
  }

  @Test
  public void testDesignIsNotLight() {
    assertEquals(false, KSColorUtils.isLight(0xFF2752FF));
  }

  @Test
  public void testFashionIsNotLight() {
    assertEquals(false, KSColorUtils.isLight(0xFFFF9FD6));
  }

  @Test
  public void testFilmAndVideoIsNotLight() {
    assertEquals(false, KSColorUtils.isLight(0xFFFF596E));
  }

  @Test
  public void testFoodIsNotLight() {
    assertEquals(false, KSColorUtils.isLight(0xFFFF3642));
  }

  @Test
  public void testGamesIsNotLight() {
    assertEquals(false, KSColorUtils.isLight(0xFF00C9AB));
  }

  @Test
  public void testJournalismIsNotLight() {
    assertEquals(false, KSColorUtils.isLight(0xFF12BCEA));
  }

  @Test
  public void testMusicIsLight() {
    assertEquals(true, KSColorUtils.isLight(0xFFA5FFD3));
  }

  @Test
  public void testPhotographyIsNotLight() {
    assertEquals(false, KSColorUtils.isLight(0xFF00E3E5));
  }

  @Test
  public void testPublishingIsLight() {
    assertEquals(true, KSColorUtils.isLight(0xFFE2DCD0));
  }

  @Test
  public void testTechnologyIsNotLight() {
    assertEquals(false, KSColorUtils.isLight(0xFF6396FC));
  }

  @Test
  public void testTheaterIsNotLight() {
    assertEquals(false, KSColorUtils.isLight(0xFFFF7D5F));
  }

  @Test
  public void testBlackIsDark() {
    assertEquals(true, KSColorUtils.isDark(0xFF000000));
  }

  @Test
  public void testWhiteIsNotDark() {
    assertEquals(false, KSColorUtils.isDark(0xFFFFFFFF));
  }
}

@@ -667,37 +667,29 @@
 %7B%0A    assert
-Equals(true, 
+True(
 KSColorUtils
@@ -766,37 +766,29 @@
 %7B%0A    assert
-Equals(true, 
+True(
 KSColorUtils
@@ -868,38 +868,30 @@
 %7B%0A    assert
-Equals(false, 
+False(
 KSColorUtils
@@ -970,38 +970,30 @@
 %7B%0A    assert
-Equals(f
+F
 alse
-, 
+(
 KSColorUtils
@@ -1073,38 +1073,30 @@
 %7B%0A    assert
-Equals(f
+F
 alse
-, 
+(
 KSColorUtils
@@ -1177,38 +1177,30 @@
 %7B%0A    assert
-Equals(false, 
+False(
 KSColorUtils
@@ -1286,38 +1286,30 @@
 %7B%0A    assert
-Equals(false, 
+False(
 KSColorUtils
@@ -1387,38 +1387,30 @@
 %7B%0A    assert
-Equals(f
+F
 alse
-, 
+(
 KSColorUtils
@@ -1489,38 +1489,30 @@
 %7B%0A    assert
-Equals(f
+F
 alse
-, 
+(
 KSColorUtils
@@ -1596,38 +1596,30 @@
 %7B%0A    assert
-Equals(false, 
+False(
 KSColorUtils
@@ -1695,37 +1695,29 @@
 %7B%0A    assert
-Equals(true, 
+True(
 KSColorUtils
@@ -1802,38 +1802,30 @@
 %7B%0A    assert
-Equals(f
+F
 alse
-, 
+(
 KSColorUtils
@@ -1906,37 +1906,29 @@
 %7B%0A    assert
-Equals(true, 
+True(
 KSColorUtils
@@ -2012,38 +2012,30 @@
 %7B%0A    assert
-Equals(false, 
+False(
 KSColorUtils
@@ -2116,38 +2116,30 @@
 %7B%0A    assert
-Equals(f
+F
 alse
-, 
+(
 KSColorUtils
@@ -2222,21 +2222,13 @@
 sert
-Equals(true, 
+True(
 KSCo
@@ -2321,22 +2321,14 @@
 sert
-Equals(f
+F
 alse
-, 
+(
 KSCo

Use shorter assertion methods