Remove setup.ini tests per issue #1138
This commit is contained in:
parent
98ee008046
commit
4cc03074da
2 changed files with 0 additions and 62 deletions
|
|
@ -77,7 +77,6 @@
|
|||
<Compile Include="MatterControl\PrinterConfigurationTests.cs" />
|
||||
<Compile Include="MatterControl\PrinterWhiteListTests.cs" />
|
||||
<Compile Include="MatterControl\ReleaseBuildTests.cs" />
|
||||
<Compile Include="MatterControl\SetupIniTests.cs" />
|
||||
<Compile Include="MatterControl\Slicing\SliceLayersTests.cs" />
|
||||
<Compile Include="MatterControl\LevelingTests.cs" />
|
||||
<Compile Include="MatterControl\GCodeStreamTests.cs" />
|
||||
|
|
|
|||
|
|
@ -1,61 +0,0 @@
|
|||
using MatterHackers.MatterControl;
|
||||
using NUnit.Framework;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Globalization;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
|
||||
namespace MatterControl.Tests.MatterControl
|
||||
{
|
||||
[TestFixture]
|
||||
public class SetupIniTests
|
||||
{
|
||||
|
||||
[Test, Category("SetupIni")]
|
||||
public void SetUpIniTests()
|
||||
{
|
||||
|
||||
DirectoryInfo currentDirectory = new DirectoryInfo(Directory.GetCurrentDirectory());
|
||||
var allConfigFile = currentDirectory.Parent.Parent.Parent.Parent.FullName;
|
||||
string pathToPrinterSettings = @"StaticData\Profiles";
|
||||
var fullPathToPrinterSettings = Path.Combine(allConfigFile, pathToPrinterSettings);
|
||||
|
||||
DirectoryInfo test = new DirectoryInfo(fullPathToPrinterSettings);
|
||||
|
||||
var fileList = test.GetFiles("*.printer", System.IO.SearchOption.AllDirectories);
|
||||
|
||||
foreach(FileInfo file in fileList)
|
||||
{
|
||||
Debug.WriteLine(file.FullName);
|
||||
|
||||
var lines = File.ReadAllLines(file.FullName);
|
||||
|
||||
if(!lines.Contains("default_material_presets", new LineEqualityComparer())|| lines.Contains("default_quality_presets", new LineEqualityComparer()))
|
||||
{
|
||||
Debug.WriteLine(file.Name);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
//We are making sure that a line contains a string but we dont want it to be equal so we are changing the check
|
||||
class LineEqualityComparer : IEqualityComparer<string>
|
||||
{
|
||||
public bool Equals(string x, string y)
|
||||
{
|
||||
return x.Contains(y);
|
||||
}
|
||||
|
||||
public int GetHashCode(string obj)
|
||||
{
|
||||
return obj.GetHashCode();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue