public void TestFiveStripGeorgOhmValue() { string[] bandColors = { "Green", "Blue", "Black", "Black", "Brown" }; GeorgOhm georgOhm = GeorgOhmFactory.CreateStripGeorgOhm(bandColors); if (georgOhm != null) { Assert.AreEqual(georgOhm.CalculateOhmValue(bandColors), "560 �"); } else { Assert.Fail(); } }
public void TestSixStripGeorgOhmValue() { string[] bandColors = { "Green", "Green", "Blue", "Red", "Silver", "Brown" }; GeorgOhm georgOhm = GeorgOhmFactory.CreateStripGeorgOhm(bandColors); if (georgOhm != null) { Assert.AreEqual(georgOhm.CalculateOhmValue(bandColors), "55600 �% 100"); } else { Assert.Fail(); } }
public void TestFourStripGeorgOhmValue() { string[] bandColors = { "Black", "Red", "Orange", "Gold" }; GeorgOhm georgOhm = GeorgOhmFactory.CreateStripGeorgOhm(bandColors); if (georgOhm != null) { Assert.AreEqual(georgOhm.CalculateOhmValue(bandColors), "2000 �"); } else { Assert.Fail(); } }