public void CodeForColor_GivenColor_ReturnsCodeForColor(BandColors color, int code) { Assert.AreEqual(code, ResistorColor.CodeForColor(color)); }
public void SetBand(int band, BandColors color) { this.band[band] = color; }
public ActionResult Index() { BandColors selectOnLoad = new BandColors(); return(View(selectOnLoad)); }
public static int CodeForColor(BandColors color) { return((int)color); }