コード例 #1
0
        public void ChampionsByCountryFilterFinland()
        {
            Formula1 f1     = new Formula1(new F1TestLoader());
            XElement actual = f1.ChampionsByCountry("Finland");

            Assert.AreEqual(Formula1VerificationData().ToString(), actual.ToString());
        }
コード例 #2
0
 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());
     }
 }
コード例 #3
0
 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());
     }
 }