public void ChampionsByCountryFilterFinland() { Formula1 f1 = new Formula1(new F1TestLoader()); XElement actual = f1.ChampionsByCountry("Finland"); Assert.AreEqual(Formula1VerificationData().ToString(), actual.ToString()); }
public void TestChampionsByCountry() { using (ShimsContext.Create()) { ShimXElement.LoadString = s => XElement.Parse(Formula1SampleData()); Formula1 f1 = new Formula1(); XElement actual = f1.ChampionsByCountry("Finland"); Assert.AreEqual(Formula1VerificationData().ToString(), actual.ToString()); } }