public void Test_validLanguageCodes() { var list = FirefoxAurora.validLanguageCodes(); Assert.IsNotNull(list); int items = 0; foreach (var item in list) { Assert.IsFalse(string.IsNullOrWhiteSpace(item)); ++items; } Assert.IsTrue(items > 50); }
public void Test_matchTest() { var fx = new FirefoxAurora("de", false); var info = fx.info(); Regex re = new Regex(info.match64Bit); // older naming convention Assert.IsTrue(re.IsMatch("Firefox Developer Edition 53.0a2 (x64 de)")); // newer naming convention Assert.IsTrue(re.IsMatch("Firefox Developer Edition 59.0 (x64 de)")); re = new Regex(info.match32Bit); // older naming convention Assert.IsTrue(re.IsMatch("Firefox Developer Edition 53.0a2 (x86 de)")); // newer naming convention Assert.IsTrue(re.IsMatch("Firefox Developer Edition 59.0 (x86 de)")); }
public void Test_implementsSearchForNewer() { var fx = new FirefoxAurora("de", false); Assert.IsTrue(fx.implementsSearchForNewer()); }