public void AddAlpha_AdjustsColorAlpha() { // arrange Color color = new Color(0.1f, 0.2f, 0.3f, 0.5f); // act color = Palette.AddAlpha(color, 0.1f); Color bound = Palette.AddAlpha(color, 9); // assert Assert.AreEqual(0.6f, color.a, TestHelper.LabelAs("color")); Assert.AreEqual(1, bound.a, TestHelper.LabelAs("bound")); }