public void TestPower1000DigitSum() { int power = 1000; var task = new Task16(); Assert.AreEqual(1366, task.Run(power), $"The sum of the digits of the number 2^{power} is incorrect"); }
static void Main(string[] args) { Task16.ExecuteTask(); Task17.ExecuteTask(); Task18.ExecuteTask(); // Task19 can take a lot of time Task19.ExecuteTask(); }
/// <summary> /// The main. /// </summary> /// <param name="args"> /// The args. /// </param> private static void Main(string[] args) { Task2.ExtractArtists(FileName); Task3.ExtractArtistsXPath(FileName); Task4.DeleteAllAlbumsWithPriceMoreThan20(FileName); Task5.ExtractAllSongTitles(FileName); Task6.ExtractAllSongTitlesXpathLinq(FileName); Task7.CreateXmlFromTxtFile(TxtName); Task8.CreateAlbumXml(FileName); Task9.TraverseDirectory("../.."); Task10.TraverseDirectory("../.."); Task11.ExtractAlbumPrices(FileName); Task12.ExtractAlbumPricesLinq(FileName); Task14.ConvertXmlToXsl(FileName, XslName); Task16.GenerateXsdFile(FileName); }
public void Task16Twice(String str, String answer) { String res = Task16.Twice(str); Assert.AreEqual(answer, res); }
public void Task16MaximumOf3(Int32 a, Int32 b, Int32 c, Int32 answer) { Int32 res = Task16.MaximumOf3(a, b, c); Assert.AreEqual(answer, res); }