diff --git a/TrackTrends.sln b/TrackTrends.sln index 7a1f648..5e36c29 100644 --- a/TrackTrends.sln +++ b/TrackTrends.sln @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrackTrends", "TrackTrends\ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BAFC8496-36AE-4539-94DE-0E505E7A8F93}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrackTrendsTests", "TrackTrendsTests\TrackTrendsTests.csproj", "{9BE68783-F589-479A-8CFA-9652C3B23A37}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -17,6 +19,10 @@ Global {F6694884-3B45-4017-9C9A-A0AFFC508245}.Debug|Any CPU.Build.0 = Debug|Any CPU {F6694884-3B45-4017-9C9A-A0AFFC508245}.Release|Any CPU.ActiveCfg = Release|Any CPU {F6694884-3B45-4017-9C9A-A0AFFC508245}.Release|Any CPU.Build.0 = Release|Any CPU + {9BE68783-F589-479A-8CFA-9652C3B23A37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9BE68783-F589-479A-8CFA-9652C3B23A37}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9BE68783-F589-479A-8CFA-9652C3B23A37}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9BE68783-F589-479A-8CFA-9652C3B23A37}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/TrackTrends/DriverDrsWindow.cs b/TrackTrends/DriverDrsWindow.cs index 41f708d..6a3c007 100644 --- a/TrackTrends/DriverDrsWindow.cs +++ b/TrackTrends/DriverDrsWindow.cs @@ -15,7 +15,7 @@ using Tesseract; namespace TrackTrends { - internal class DriverDrsWindow:Window + public class DriverDrsWindow:Window { private static int EmptyDrsGreenValue = -1; private static Random rnd = new Random(); diff --git a/TrackTrends/OcrImage.cs b/TrackTrends/OcrImage.cs index d14e5cb..ce966c6 100644 --- a/TrackTrends/OcrImage.cs +++ b/TrackTrends/OcrImage.cs @@ -41,7 +41,7 @@ namespace TrackTrends /// /// The type of the window. Depending on it different enhancing features will be applied /// The enhanced Bitmap - public Bitmap Enhance(int id,WindowType type = WindowType.Text) + public Bitmap Enhance(WindowType type = WindowType.Text) { Bitmap outputBitmap = (Bitmap)InputBitmap.Clone(); //Note : If you plan to activate all the comments that I used to debug the OCR I would advise to make sure that the debug folder exists diff --git a/TrackTrends/Window.cs b/TrackTrends/Window.cs index 1480b11..d34945b 100644 --- a/TrackTrends/Window.cs +++ b/TrackTrends/Window.cs @@ -153,7 +153,7 @@ namespace TrackTrends } - Bitmap enhancedImage = new OcrImage(image).Enhance(salt, windowType); + Bitmap enhancedImage = new OcrImage(image).Enhance(windowType); var tessImage = Pix.LoadFromMemory(ImageToByte(enhancedImage)); @@ -578,7 +578,7 @@ namespace TrackTrends Engine.SetVariable("tessedit_char_whitelist", allowedChars); Bitmap rawData = image; - Bitmap enhancedImage = new OcrImage(rawData).Enhance(salt, windowType); + Bitmap enhancedImage = new OcrImage(rawData).Enhance(windowType); Page page = Engine.Process(enhancedImage); using (var iter = page.GetIterator()) diff --git a/TrackTrendsTests/OcrImageTests.cs b/TrackTrendsTests/OcrImageTests.cs new file mode 100644 index 0000000..94a6546 --- /dev/null +++ b/TrackTrendsTests/OcrImageTests.cs @@ -0,0 +1,66 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using TrackTrends; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.IO; +using System.Drawing; + +namespace TrackTrends.Tests +{ + [TestClass()] + public class OcrImageTests + { + [TestMethod()] + public void LapTimeOCR_Test() + { + Assert.Fail(); + } + [TestMethod()] + public void PositionOCR_Test() + { + Assert.Fail(); + } + [TestMethod()] + public void GapToLeaderOCR_Test() + { + Assert.Fail(); + } + [TestMethod()] + public void DRS_OCR_Test() + { + string directory = @"./../../TestImages/DRS/"; + DirectoryInfo directoryInfo = new DirectoryInfo(directory); + if (Directory.Exists(directory)) + { + Bitmap falseExemple = (Bitmap)Image.FromFile(directory + "False.png"); + Bitmap trueExemple = (Bitmap)Image.FromFile(directory + "True.png"); + + DriverDrsWindow falseDRS = new DriverDrsWindow(falseExemple, new Rectangle(0, 0, falseExemple.Width, falseExemple.Height), true); + DriverDrsWindow trueDRS = new DriverDrsWindow(trueExemple, new Rectangle(0, 0, trueExemple.Width, trueExemple.Height), true); + + bool falseResult = (bool)falseDRS.DecodePng(); + bool trueResult = (bool)trueDRS.DecodePng(); + + Assert.IsFalse(falseResult); + Assert.IsTrue(trueResult); + } + else + { + Assert.Fail(); + } + } + [TestMethod()] + public void DriverNameOCR_Test() + { + Assert.Fail(); + } + [TestMethod()] + public void SectorOCR_Test() + { + Assert.Fail(); + } + } +} \ No newline at end of file diff --git a/TrackTrendsTests/Properties/AssemblyInfo.cs b/TrackTrendsTests/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ef51a93 --- /dev/null +++ b/TrackTrendsTests/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("TrackTrendsTests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("TrackTrendsTests")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9be68783-f589-479a-8cfa-9652c3b23a37")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TrackTrends/TestImages/DRS/False.png b/TrackTrendsTests/TestImages/DRS/False.png similarity index 100% rename from TrackTrends/TestImages/DRS/False.png rename to TrackTrendsTests/TestImages/DRS/False.png diff --git a/TrackTrends/TestImages/DRS/True.png b/TrackTrendsTests/TestImages/DRS/True.png similarity index 100% rename from TrackTrends/TestImages/DRS/True.png rename to TrackTrendsTests/TestImages/DRS/True.png diff --git a/TrackTrends/TestImages/Gaps/0.png b/TrackTrendsTests/TestImages/Gaps/0.png similarity index 100% rename from TrackTrends/TestImages/Gaps/0.png rename to TrackTrendsTests/TestImages/Gaps/0.png diff --git a/TrackTrends/TestImages/Gaps/1_05_336.png b/TrackTrendsTests/TestImages/Gaps/1_05_336.png similarity index 100% rename from TrackTrends/TestImages/Gaps/1_05_336.png rename to TrackTrendsTests/TestImages/Gaps/1_05_336.png diff --git a/TrackTrends/TestImages/Gaps/1_08_521.png b/TrackTrendsTests/TestImages/Gaps/1_08_521.png similarity index 100% rename from TrackTrends/TestImages/Gaps/1_08_521.png rename to TrackTrendsTests/TestImages/Gaps/1_08_521.png diff --git a/TrackTrends/TestImages/Gaps/1_08_882.png b/TrackTrendsTests/TestImages/Gaps/1_08_882.png similarity index 100% rename from TrackTrends/TestImages/Gaps/1_08_882.png rename to TrackTrendsTests/TestImages/Gaps/1_08_882.png diff --git a/TrackTrends/TestImages/Gaps/25_442.png b/TrackTrendsTests/TestImages/Gaps/25_442.png similarity index 100% rename from TrackTrends/TestImages/Gaps/25_442.png rename to TrackTrendsTests/TestImages/Gaps/25_442.png diff --git a/TrackTrends/TestImages/Gaps/27_610.png b/TrackTrendsTests/TestImages/Gaps/27_610.png similarity index 100% rename from TrackTrends/TestImages/Gaps/27_610.png rename to TrackTrendsTests/TestImages/Gaps/27_610.png diff --git a/TrackTrends/TestImages/Gaps/28_657.png b/TrackTrendsTests/TestImages/Gaps/28_657.png similarity index 100% rename from TrackTrends/TestImages/Gaps/28_657.png rename to TrackTrendsTests/TestImages/Gaps/28_657.png diff --git a/TrackTrends/TestImages/Gaps/28_678.png b/TrackTrendsTests/TestImages/Gaps/28_678.png similarity index 100% rename from TrackTrends/TestImages/Gaps/28_678.png rename to TrackTrendsTests/TestImages/Gaps/28_678.png diff --git a/TrackTrends/TestImages/Gaps/30_387.png b/TrackTrendsTests/TestImages/Gaps/30_387.png similarity index 100% rename from TrackTrends/TestImages/Gaps/30_387.png rename to TrackTrendsTests/TestImages/Gaps/30_387.png diff --git a/TrackTrends/TestImages/Gaps/32_419.png b/TrackTrendsTests/TestImages/Gaps/32_419.png similarity index 100% rename from TrackTrends/TestImages/Gaps/32_419.png rename to TrackTrendsTests/TestImages/Gaps/32_419.png diff --git a/TrackTrends/TestImages/Gaps/32_447.png b/TrackTrendsTests/TestImages/Gaps/32_447.png similarity index 100% rename from TrackTrends/TestImages/Gaps/32_447.png rename to TrackTrendsTests/TestImages/Gaps/32_447.png diff --git a/TrackTrends/TestImages/Gaps/38_202.png b/TrackTrendsTests/TestImages/Gaps/38_202.png similarity index 100% rename from TrackTrends/TestImages/Gaps/38_202.png rename to TrackTrendsTests/TestImages/Gaps/38_202.png diff --git a/TrackTrends/TestImages/Gaps/42_181.png b/TrackTrendsTests/TestImages/Gaps/42_181.png similarity index 100% rename from TrackTrends/TestImages/Gaps/42_181.png rename to TrackTrendsTests/TestImages/Gaps/42_181.png diff --git a/TrackTrends/TestImages/Gaps/44_041.png b/TrackTrendsTests/TestImages/Gaps/44_041.png similarity index 100% rename from TrackTrends/TestImages/Gaps/44_041.png rename to TrackTrendsTests/TestImages/Gaps/44_041.png diff --git a/TrackTrends/TestImages/Gaps/48_573.png b/TrackTrendsTests/TestImages/Gaps/48_573.png similarity index 100% rename from TrackTrends/TestImages/Gaps/48_573.png rename to TrackTrendsTests/TestImages/Gaps/48_573.png diff --git a/TrackTrends/TestImages/Gaps/53_140.png b/TrackTrendsTests/TestImages/Gaps/53_140.png similarity index 100% rename from TrackTrends/TestImages/Gaps/53_140.png rename to TrackTrendsTests/TestImages/Gaps/53_140.png diff --git a/TrackTrends/TestImages/Gaps/53_184.png b/TrackTrendsTests/TestImages/Gaps/53_184.png similarity index 100% rename from TrackTrends/TestImages/Gaps/53_184.png rename to TrackTrendsTests/TestImages/Gaps/53_184.png diff --git a/TrackTrends/TestImages/Gaps/57_085.png b/TrackTrendsTests/TestImages/Gaps/57_085.png similarity index 100% rename from TrackTrends/TestImages/Gaps/57_085.png rename to TrackTrendsTests/TestImages/Gaps/57_085.png diff --git a/TrackTrends/TestImages/Gaps/57_925.png b/TrackTrendsTests/TestImages/Gaps/57_925.png similarity index 100% rename from TrackTrends/TestImages/Gaps/57_925.png rename to TrackTrendsTests/TestImages/Gaps/57_925.png diff --git a/TrackTrends/TestImages/Gaps/8_544.png b/TrackTrendsTests/TestImages/Gaps/8_544.png similarity index 100% rename from TrackTrends/TestImages/Gaps/8_544.png rename to TrackTrendsTests/TestImages/Gaps/8_544.png diff --git a/TrackTrends/TestImages/LapTimes/1_17_130.png b/TrackTrendsTests/TestImages/LapTimes/1_17_130.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_17_130.png rename to TrackTrendsTests/TestImages/LapTimes/1_17_130.png diff --git a/TrackTrends/TestImages/LapTimes/1_17_214.png b/TrackTrendsTests/TestImages/LapTimes/1_17_214.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_17_214.png rename to TrackTrendsTests/TestImages/LapTimes/1_17_214.png diff --git a/TrackTrends/TestImages/LapTimes/1_17_824.png b/TrackTrendsTests/TestImages/LapTimes/1_17_824.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_17_824.png rename to TrackTrendsTests/TestImages/LapTimes/1_17_824.png diff --git a/TrackTrends/TestImages/LapTimes/1_17_867.png b/TrackTrendsTests/TestImages/LapTimes/1_17_867.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_17_867.png rename to TrackTrendsTests/TestImages/LapTimes/1_17_867.png diff --git a/TrackTrends/TestImages/LapTimes/1_17_915.png b/TrackTrendsTests/TestImages/LapTimes/1_17_915.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_17_915.png rename to TrackTrendsTests/TestImages/LapTimes/1_17_915.png diff --git a/TrackTrends/TestImages/LapTimes/1_17_999.png b/TrackTrendsTests/TestImages/LapTimes/1_17_999.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_17_999.png rename to TrackTrendsTests/TestImages/LapTimes/1_17_999.png diff --git a/TrackTrends/TestImages/LapTimes/1_18_074.png b/TrackTrendsTests/TestImages/LapTimes/1_18_074.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_18_074.png rename to TrackTrendsTests/TestImages/LapTimes/1_18_074.png diff --git a/TrackTrends/TestImages/LapTimes/1_18_109.png b/TrackTrendsTests/TestImages/LapTimes/1_18_109.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_18_109.png rename to TrackTrendsTests/TestImages/LapTimes/1_18_109.png diff --git a/TrackTrends/TestImages/LapTimes/1_18_121.png b/TrackTrendsTests/TestImages/LapTimes/1_18_121.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_18_121.png rename to TrackTrendsTests/TestImages/LapTimes/1_18_121.png diff --git a/TrackTrends/TestImages/LapTimes/1_18_299.png b/TrackTrendsTests/TestImages/LapTimes/1_18_299.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_18_299.png rename to TrackTrendsTests/TestImages/LapTimes/1_18_299.png diff --git a/TrackTrends/TestImages/LapTimes/1_18_365.png b/TrackTrendsTests/TestImages/LapTimes/1_18_365.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_18_365.png rename to TrackTrendsTests/TestImages/LapTimes/1_18_365.png diff --git a/TrackTrends/TestImages/LapTimes/1_18_445.png b/TrackTrendsTests/TestImages/LapTimes/1_18_445.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_18_445.png rename to TrackTrendsTests/TestImages/LapTimes/1_18_445.png diff --git a/TrackTrends/TestImages/LapTimes/1_18_567.png b/TrackTrendsTests/TestImages/LapTimes/1_18_567.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_18_567.png rename to TrackTrendsTests/TestImages/LapTimes/1_18_567.png diff --git a/TrackTrends/TestImages/LapTimes/1_19_234.png b/TrackTrendsTests/TestImages/LapTimes/1_19_234.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_19_234.png rename to TrackTrendsTests/TestImages/LapTimes/1_19_234.png diff --git a/TrackTrends/TestImages/LapTimes/1_19_416.png b/TrackTrendsTests/TestImages/LapTimes/1_19_416.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_19_416.png rename to TrackTrendsTests/TestImages/LapTimes/1_19_416.png diff --git a/TrackTrends/TestImages/LapTimes/1_19_504.png b/TrackTrendsTests/TestImages/LapTimes/1_19_504.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_19_504.png rename to TrackTrendsTests/TestImages/LapTimes/1_19_504.png diff --git a/TrackTrends/TestImages/LapTimes/1_19_836.png b/TrackTrendsTests/TestImages/LapTimes/1_19_836.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_19_836.png rename to TrackTrendsTests/TestImages/LapTimes/1_19_836.png diff --git a/TrackTrends/TestImages/LapTimes/1_22_328.png b/TrackTrendsTests/TestImages/LapTimes/1_22_328.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_22_328.png rename to TrackTrendsTests/TestImages/LapTimes/1_22_328.png diff --git a/TrackTrends/TestImages/LapTimes/1_22_387.png b/TrackTrendsTests/TestImages/LapTimes/1_22_387.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_22_387.png rename to TrackTrendsTests/TestImages/LapTimes/1_22_387.png diff --git a/TrackTrends/TestImages/LapTimes/1_23_193.png b/TrackTrendsTests/TestImages/LapTimes/1_23_193.png similarity index 100% rename from TrackTrends/TestImages/LapTimes/1_23_193.png rename to TrackTrendsTests/TestImages/LapTimes/1_23_193.png diff --git a/TrackTrends/TestImages/Names/Albon.png b/TrackTrendsTests/TestImages/Names/Albon.png similarity index 100% rename from TrackTrends/TestImages/Names/Albon.png rename to TrackTrendsTests/TestImages/Names/Albon.png diff --git a/TrackTrends/TestImages/Names/Alonso.png b/TrackTrendsTests/TestImages/Names/Alonso.png similarity index 100% rename from TrackTrends/TestImages/Names/Alonso.png rename to TrackTrendsTests/TestImages/Names/Alonso.png diff --git a/TrackTrends/TestImages/Names/Bottas.png b/TrackTrendsTests/TestImages/Names/Bottas.png similarity index 100% rename from TrackTrends/TestImages/Names/Bottas.png rename to TrackTrendsTests/TestImages/Names/Bottas.png diff --git a/TrackTrends/TestImages/Names/De_Vries.png b/TrackTrendsTests/TestImages/Names/De_Vries.png similarity index 100% rename from TrackTrends/TestImages/Names/De_Vries.png rename to TrackTrendsTests/TestImages/Names/De_Vries.png diff --git a/TrackTrends/TestImages/Names/Gasly.png b/TrackTrendsTests/TestImages/Names/Gasly.png similarity index 100% rename from TrackTrends/TestImages/Names/Gasly.png rename to TrackTrendsTests/TestImages/Names/Gasly.png diff --git a/TrackTrends/TestImages/Names/Hamilton.png b/TrackTrendsTests/TestImages/Names/Hamilton.png similarity index 100% rename from TrackTrends/TestImages/Names/Hamilton.png rename to TrackTrendsTests/TestImages/Names/Hamilton.png diff --git a/TrackTrends/TestImages/Names/Hulkenberg.png b/TrackTrendsTests/TestImages/Names/Hulkenberg.png similarity index 100% rename from TrackTrends/TestImages/Names/Hulkenberg.png rename to TrackTrendsTests/TestImages/Names/Hulkenberg.png diff --git a/TrackTrends/TestImages/Names/Leclerc.png b/TrackTrendsTests/TestImages/Names/Leclerc.png similarity index 100% rename from TrackTrends/TestImages/Names/Leclerc.png rename to TrackTrendsTests/TestImages/Names/Leclerc.png diff --git a/TrackTrends/TestImages/Names/Magnussen.png b/TrackTrendsTests/TestImages/Names/Magnussen.png similarity index 100% rename from TrackTrends/TestImages/Names/Magnussen.png rename to TrackTrendsTests/TestImages/Names/Magnussen.png diff --git a/TrackTrends/TestImages/Names/Norris.png b/TrackTrendsTests/TestImages/Names/Norris.png similarity index 100% rename from TrackTrends/TestImages/Names/Norris.png rename to TrackTrendsTests/TestImages/Names/Norris.png diff --git a/TrackTrends/TestImages/Names/Ocon.png b/TrackTrendsTests/TestImages/Names/Ocon.png similarity index 100% rename from TrackTrends/TestImages/Names/Ocon.png rename to TrackTrendsTests/TestImages/Names/Ocon.png diff --git a/TrackTrends/TestImages/Names/Perez.png b/TrackTrendsTests/TestImages/Names/Perez.png similarity index 100% rename from TrackTrends/TestImages/Names/Perez.png rename to TrackTrendsTests/TestImages/Names/Perez.png diff --git a/TrackTrends/TestImages/Names/Piastri.png b/TrackTrendsTests/TestImages/Names/Piastri.png similarity index 100% rename from TrackTrends/TestImages/Names/Piastri.png rename to TrackTrendsTests/TestImages/Names/Piastri.png diff --git a/TrackTrends/TestImages/Names/Russel.png b/TrackTrendsTests/TestImages/Names/Russel.png similarity index 100% rename from TrackTrends/TestImages/Names/Russel.png rename to TrackTrendsTests/TestImages/Names/Russel.png diff --git a/TrackTrends/TestImages/Names/Sainz.png b/TrackTrendsTests/TestImages/Names/Sainz.png similarity index 100% rename from TrackTrends/TestImages/Names/Sainz.png rename to TrackTrendsTests/TestImages/Names/Sainz.png diff --git a/TrackTrends/TestImages/Names/Sargeant.png b/TrackTrendsTests/TestImages/Names/Sargeant.png similarity index 100% rename from TrackTrends/TestImages/Names/Sargeant.png rename to TrackTrendsTests/TestImages/Names/Sargeant.png diff --git a/TrackTrends/TestImages/Names/Stroll.png b/TrackTrendsTests/TestImages/Names/Stroll.png similarity index 100% rename from TrackTrends/TestImages/Names/Stroll.png rename to TrackTrendsTests/TestImages/Names/Stroll.png diff --git a/TrackTrends/TestImages/Names/Tsunoda.png b/TrackTrendsTests/TestImages/Names/Tsunoda.png similarity index 100% rename from TrackTrends/TestImages/Names/Tsunoda.png rename to TrackTrendsTests/TestImages/Names/Tsunoda.png diff --git a/TrackTrends/TestImages/Names/Verstappen.png b/TrackTrendsTests/TestImages/Names/Verstappen.png similarity index 100% rename from TrackTrends/TestImages/Names/Verstappen.png rename to TrackTrendsTests/TestImages/Names/Verstappen.png diff --git a/TrackTrends/TestImages/Names/Zhou.png b/TrackTrendsTests/TestImages/Names/Zhou.png similarity index 100% rename from TrackTrends/TestImages/Names/Zhou.png rename to TrackTrendsTests/TestImages/Names/Zhou.png diff --git a/TrackTrends/TestImages/Positions/1.png b/TrackTrendsTests/TestImages/Positions/1.png similarity index 100% rename from TrackTrends/TestImages/Positions/1.png rename to TrackTrendsTests/TestImages/Positions/1.png diff --git a/TrackTrends/TestImages/Positions/10.png b/TrackTrendsTests/TestImages/Positions/10.png similarity index 100% rename from TrackTrends/TestImages/Positions/10.png rename to TrackTrendsTests/TestImages/Positions/10.png diff --git a/TrackTrends/TestImages/Positions/11.png b/TrackTrendsTests/TestImages/Positions/11.png similarity index 100% rename from TrackTrends/TestImages/Positions/11.png rename to TrackTrendsTests/TestImages/Positions/11.png diff --git a/TrackTrends/TestImages/Positions/12.png b/TrackTrendsTests/TestImages/Positions/12.png similarity index 100% rename from TrackTrends/TestImages/Positions/12.png rename to TrackTrendsTests/TestImages/Positions/12.png diff --git a/TrackTrends/TestImages/Positions/13.png b/TrackTrendsTests/TestImages/Positions/13.png similarity index 100% rename from TrackTrends/TestImages/Positions/13.png rename to TrackTrendsTests/TestImages/Positions/13.png diff --git a/TrackTrends/TestImages/Positions/14.png b/TrackTrendsTests/TestImages/Positions/14.png similarity index 100% rename from TrackTrends/TestImages/Positions/14.png rename to TrackTrendsTests/TestImages/Positions/14.png diff --git a/TrackTrends/TestImages/Positions/15.png b/TrackTrendsTests/TestImages/Positions/15.png similarity index 100% rename from TrackTrends/TestImages/Positions/15.png rename to TrackTrendsTests/TestImages/Positions/15.png diff --git a/TrackTrends/TestImages/Positions/16.png b/TrackTrendsTests/TestImages/Positions/16.png similarity index 100% rename from TrackTrends/TestImages/Positions/16.png rename to TrackTrendsTests/TestImages/Positions/16.png diff --git a/TrackTrends/TestImages/Positions/17.png b/TrackTrendsTests/TestImages/Positions/17.png similarity index 100% rename from TrackTrends/TestImages/Positions/17.png rename to TrackTrendsTests/TestImages/Positions/17.png diff --git a/TrackTrends/TestImages/Positions/18.png b/TrackTrendsTests/TestImages/Positions/18.png similarity index 100% rename from TrackTrends/TestImages/Positions/18.png rename to TrackTrendsTests/TestImages/Positions/18.png diff --git a/TrackTrends/TestImages/Positions/19.png b/TrackTrendsTests/TestImages/Positions/19.png similarity index 100% rename from TrackTrends/TestImages/Positions/19.png rename to TrackTrendsTests/TestImages/Positions/19.png diff --git a/TrackTrends/TestImages/Positions/2.png b/TrackTrendsTests/TestImages/Positions/2.png similarity index 100% rename from TrackTrends/TestImages/Positions/2.png rename to TrackTrendsTests/TestImages/Positions/2.png diff --git a/TrackTrends/TestImages/Positions/20.png b/TrackTrendsTests/TestImages/Positions/20.png similarity index 100% rename from TrackTrends/TestImages/Positions/20.png rename to TrackTrendsTests/TestImages/Positions/20.png diff --git a/TrackTrends/TestImages/Positions/3.png b/TrackTrendsTests/TestImages/Positions/3.png similarity index 100% rename from TrackTrends/TestImages/Positions/3.png rename to TrackTrendsTests/TestImages/Positions/3.png diff --git a/TrackTrends/TestImages/Positions/4.png b/TrackTrendsTests/TestImages/Positions/4.png similarity index 100% rename from TrackTrends/TestImages/Positions/4.png rename to TrackTrendsTests/TestImages/Positions/4.png diff --git a/TrackTrends/TestImages/Positions/5.png b/TrackTrendsTests/TestImages/Positions/5.png similarity index 100% rename from TrackTrends/TestImages/Positions/5.png rename to TrackTrendsTests/TestImages/Positions/5.png diff --git a/TrackTrends/TestImages/Positions/6.png b/TrackTrendsTests/TestImages/Positions/6.png similarity index 100% rename from TrackTrends/TestImages/Positions/6.png rename to TrackTrendsTests/TestImages/Positions/6.png diff --git a/TrackTrends/TestImages/Positions/7.png b/TrackTrendsTests/TestImages/Positions/7.png similarity index 100% rename from TrackTrends/TestImages/Positions/7.png rename to TrackTrendsTests/TestImages/Positions/7.png diff --git a/TrackTrends/TestImages/Positions/8.png b/TrackTrendsTests/TestImages/Positions/8.png similarity index 100% rename from TrackTrends/TestImages/Positions/8.png rename to TrackTrendsTests/TestImages/Positions/8.png diff --git a/TrackTrends/TestImages/Positions/9.png b/TrackTrendsTests/TestImages/Positions/9.png similarity index 100% rename from TrackTrends/TestImages/Positions/9.png rename to TrackTrendsTests/TestImages/Positions/9.png diff --git a/TrackTrends/TestImages/Sectors/20_018.png b/TrackTrendsTests/TestImages/Sectors/20_018.png similarity index 100% rename from TrackTrends/TestImages/Sectors/20_018.png rename to TrackTrendsTests/TestImages/Sectors/20_018.png diff --git a/TrackTrends/TestImages/Sectors/20_231.png b/TrackTrendsTests/TestImages/Sectors/20_231.png similarity index 100% rename from TrackTrends/TestImages/Sectors/20_231.png rename to TrackTrendsTests/TestImages/Sectors/20_231.png diff --git a/TrackTrends/TestImages/Sectors/20_294.png b/TrackTrendsTests/TestImages/Sectors/20_294.png similarity index 100% rename from TrackTrends/TestImages/Sectors/20_294.png rename to TrackTrendsTests/TestImages/Sectors/20_294.png diff --git a/TrackTrends/TestImages/Sectors/20_314.png b/TrackTrendsTests/TestImages/Sectors/20_314.png similarity index 100% rename from TrackTrends/TestImages/Sectors/20_314.png rename to TrackTrendsTests/TestImages/Sectors/20_314.png diff --git a/TrackTrends/TestImages/Sectors/20_327.png b/TrackTrendsTests/TestImages/Sectors/20_327.png similarity index 100% rename from TrackTrends/TestImages/Sectors/20_327.png rename to TrackTrendsTests/TestImages/Sectors/20_327.png diff --git a/TrackTrends/TestImages/Sectors/20_665.png b/TrackTrendsTests/TestImages/Sectors/20_665.png similarity index 100% rename from TrackTrends/TestImages/Sectors/20_665.png rename to TrackTrendsTests/TestImages/Sectors/20_665.png diff --git a/TrackTrends/TestImages/Sectors/21_173.png b/TrackTrendsTests/TestImages/Sectors/21_173.png similarity index 100% rename from TrackTrends/TestImages/Sectors/21_173.png rename to TrackTrendsTests/TestImages/Sectors/21_173.png diff --git a/TrackTrends/TestImages/Sectors/36_015.png b/TrackTrendsTests/TestImages/Sectors/36_015.png similarity index 100% rename from TrackTrends/TestImages/Sectors/36_015.png rename to TrackTrendsTests/TestImages/Sectors/36_015.png diff --git a/TrackTrends/TestImages/Sectors/36_481.png b/TrackTrendsTests/TestImages/Sectors/36_481.png similarity index 100% rename from TrackTrends/TestImages/Sectors/36_481.png rename to TrackTrendsTests/TestImages/Sectors/36_481.png diff --git a/TrackTrends/TestImages/Sectors/37_019.png b/TrackTrendsTests/TestImages/Sectors/37_019.png similarity index 100% rename from TrackTrends/TestImages/Sectors/37_019.png rename to TrackTrendsTests/TestImages/Sectors/37_019.png diff --git a/TrackTrends/TestImages/Sectors/37_125.png b/TrackTrendsTests/TestImages/Sectors/37_125.png similarity index 100% rename from TrackTrends/TestImages/Sectors/37_125.png rename to TrackTrendsTests/TestImages/Sectors/37_125.png diff --git a/TrackTrends/TestImages/Sectors/37_774.png b/TrackTrendsTests/TestImages/Sectors/37_774.png similarity index 100% rename from TrackTrends/TestImages/Sectors/37_774.png rename to TrackTrendsTests/TestImages/Sectors/37_774.png diff --git a/TrackTrends/TestImages/Sectors/38_128.png b/TrackTrendsTests/TestImages/Sectors/38_128.png similarity index 100% rename from TrackTrends/TestImages/Sectors/38_128.png rename to TrackTrendsTests/TestImages/Sectors/38_128.png diff --git a/TrackTrends/TestImages/Tyres/raw_132483.png b/TrackTrendsTests/TestImages/Tyres/raw_132483.png similarity index 100% rename from TrackTrends/TestImages/Tyres/raw_132483.png rename to TrackTrendsTests/TestImages/Tyres/raw_132483.png diff --git a/TrackTrends/TestImages/Tyres/raw_13768.png b/TrackTrendsTests/TestImages/Tyres/raw_13768.png similarity index 100% rename from TrackTrends/TestImages/Tyres/raw_13768.png rename to TrackTrendsTests/TestImages/Tyres/raw_13768.png diff --git a/TrackTrends/TestImages/Tyres/raw_158602.png b/TrackTrendsTests/TestImages/Tyres/raw_158602.png similarity index 100% rename from TrackTrends/TestImages/Tyres/raw_158602.png rename to TrackTrendsTests/TestImages/Tyres/raw_158602.png diff --git a/TrackTrends/TestImages/Tyres/raw_165803.png b/TrackTrendsTests/TestImages/Tyres/raw_165803.png similarity index 100% rename from TrackTrends/TestImages/Tyres/raw_165803.png rename to TrackTrendsTests/TestImages/Tyres/raw_165803.png diff --git a/TrackTrends/TestImages/Tyres/raw_225154.png b/TrackTrendsTests/TestImages/Tyres/raw_225154.png similarity index 100% rename from TrackTrends/TestImages/Tyres/raw_225154.png rename to TrackTrendsTests/TestImages/Tyres/raw_225154.png diff --git a/TrackTrends/TestImages/Tyres/raw_225810.png b/TrackTrendsTests/TestImages/Tyres/raw_225810.png similarity index 100% rename from TrackTrends/TestImages/Tyres/raw_225810.png rename to TrackTrendsTests/TestImages/Tyres/raw_225810.png diff --git a/TrackTrends/TestImages/Tyres/raw_306080.png b/TrackTrendsTests/TestImages/Tyres/raw_306080.png similarity index 100% rename from TrackTrends/TestImages/Tyres/raw_306080.png rename to TrackTrendsTests/TestImages/Tyres/raw_306080.png diff --git a/TrackTrends/TestImages/Tyres/raw_309061.png b/TrackTrendsTests/TestImages/Tyres/raw_309061.png similarity index 100% rename from TrackTrends/TestImages/Tyres/raw_309061.png rename to TrackTrendsTests/TestImages/Tyres/raw_309061.png diff --git a/TrackTrends/TestImages/Tyres/raw_872581.png b/TrackTrendsTests/TestImages/Tyres/raw_872581.png similarity index 100% rename from TrackTrends/TestImages/Tyres/raw_872581.png rename to TrackTrendsTests/TestImages/Tyres/raw_872581.png diff --git a/TrackTrends/TestImages/Tyres/raw_956963.png b/TrackTrendsTests/TestImages/Tyres/raw_956963.png similarity index 100% rename from TrackTrends/TestImages/Tyres/raw_956963.png rename to TrackTrendsTests/TestImages/Tyres/raw_956963.png diff --git a/TrackTrends/TestImages/Tyres/raw_987957.png b/TrackTrendsTests/TestImages/Tyres/raw_987957.png similarity index 100% rename from TrackTrends/TestImages/Tyres/raw_987957.png rename to TrackTrendsTests/TestImages/Tyres/raw_987957.png diff --git a/TrackTrendsTests/TrackTrendsTests.csproj b/TrackTrendsTests/TrackTrendsTests.csproj new file mode 100644 index 0000000..9ca3de8 --- /dev/null +++ b/TrackTrendsTests/TrackTrendsTests.csproj @@ -0,0 +1,106 @@ + + + + + Debug + AnyCPU + {9BE68783-F589-479A-8CFA-9652C3B23A37} + Library + Properties + TrackTrendsTests + TrackTrendsTests + v4.7.2 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages + False + UnitTest + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\MSTest.TestFramework.2.2.7\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll + + + ..\packages\MSTest.TestFramework.2.2.7\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll + + + + + + + + + + + + + + + + + + + + + + {F6694884-3B45-4017-9C9A-A0AFFC508245} + TrackTrends + + + + + + + False + + + False + + + False + + + False + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + + \ No newline at end of file diff --git a/TrackTrendsTests/packages.config b/TrackTrendsTests/packages.config new file mode 100644 index 0000000..54eb31a --- /dev/null +++ b/TrackTrendsTests/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file