コード例 #1
0
 public void SetUp()
 {
     container         = TagCloud.Program.GetContainer();
     pathToReadWords   = SetUpMethods.GetPathToWordsToRead();
     pathToBoringWords = SetUpMethods.GetPathToBoringWords();
     SetUpMethods.CreateFile(pathToReadWords);
     SetUpMethods.WriteLinesInFile(pathToReadWords, "i", "I", "i", "I", "Boat", "BoaT", "BoAt", "BOAT", "in",
                                   "IN");
     SetUpMethods.CreateFile(pathToBoringWords);
     SetUpMethods.WriteLinesInFile(pathToBoringWords, "in");
     imageSettings = new ImageSettings(300, 300, "Arial", "ShadesOfPink");
 }
コード例 #2
0
ファイル: CloudTests.cs プロジェクト: balandin228/fp
 public void SetUp()
 {
     graphics          = Graphics.FromImage(new Bitmap(300, 300));
     font              = new Font("Arial", 24, FontStyle.Bold);
     container         = TagCloud.Program.GetContainer();
     pathToReadWords   = SetUpMethods.GetPathToWordsToRead();
     pathToBoringWords = SetUpMethods.GetPathToBoringWords();
     SetUpMethods.CreateFile(pathToReadWords);
     SetUpMethods.WriteLinesInFile(pathToReadWords, "i", "I", "i", "I", "Boat", "BoaT", "BoAt", "BOAT", "in",
                                   "IN");
     SetUpMethods.CreateFile(pathToBoringWords);
     SetUpMethods.WriteLinesInFile(pathToBoringWords, "in");
     imageSettings = new ImageSettings(300, 300, "Arial", "ShadesOfPink");
 }
コード例 #3
0
ファイル: ParserTests.cs プロジェクト: balandin228/fp
 public void SetUp()
 {
     pathToReadWords   = SetUpMethods.GetPathToWordsToRead();
     pathToBoringWords = SetUpMethods.GetPathToBoringWords();
     SetUpMethods.CreateFile(pathToBoringWords);
     SetUpMethods.WriteLinesInFile(pathToBoringWords, "in");
     SetUpMethods.CreateFile(pathToReadWords);
     SetUpMethods.WriteLinesInFile(pathToReadWords, "i ", "   I", "i     ", "I", "Boat  ", "   BoaT", "BoAt",
                                   "BOAT", "in", "IN");
     container            = TagCloud.Program.GetContainer();
     wordsHandler         = container.Resolve <IWordsHandler>();
     fileReader           = container.Resolve <IFileReader>();
     tagCollectionFactory = container.Resolve <ITagCollectionFactory>();
     imageSettings        = new ImageSettings(300, 300, "Arial", "ShadesOfPink");
 }