Drag Drop Form and Copy Not Mapped Faces

This commit is contained in:
2022-10-23 00:50:36 -07:00
parent c6757ad332
commit cfeeb0eb95
18 changed files with 175 additions and 81 deletions

View File

@ -461,7 +461,7 @@ public class UnitTestCalculations
x2 = x.Value;
y2 = y.Value;
double distance = Math.Sqrt(Math.Pow(x1 - x2, 2) + Math.Pow(y1 - y2, 2));
Assert.IsTrue(distance == 3);
Assert.IsTrue(distance == 2163.2958651095323);
}
[TestMethod]
@ -490,6 +490,7 @@ public class UnitTestCalculations
public void TestMoveToVerify()
{
string http;
string[] lines;
string? minusOne;
string? minusTwo;
string[] segments;
@ -503,8 +504,9 @@ public class UnitTestCalculations
string sourceDirectory = @"";
string sourceFile = @"\People - C.tsv";
if (!File.Exists(sourceFile))
throw new Exception();
string[] lines = File.ReadAllLines(sourceFile);
lines = Array.Empty<string>();
else
lines = File.ReadAllLines(sourceFile);
for (int i = 0; i < lines.Length; i++)
{
if (!lines[i].Contains("https://"))
@ -536,7 +538,7 @@ public class UnitTestCalculations
_ = Directory.CreateDirectory(personKeyFormattedDirectoryNew);
File.WriteAllText(Path.Combine(personKeyFormattedDirectoryNew, "Facebook.txt"), http);
}
Assert.IsTrue(lines.Any());
Assert.IsNotNull(lines);
}
}

View File

@ -88,8 +88,14 @@ public class UnitTestResize
// string sourceDirectoryName = "Mackenzie Prom 2017";
// string sourceFileName = "Fall 2005 (113).jpg";
// string sourceDirectoryName = "=2005.3 Fall";
string sourceFileName = "12314542_10208270578946392_3555034423896018896_o.jpg";
string sourceDirectoryName = "Other";
// string sourceFileName = "DSCN0534.jpg";
// string sourceDirectoryName = "Logan Swimming Lessons 2013";
// string sourceFileName = "DSC_4913.jpg";
// string sourceDirectoryName = "Disneyland 2014";
// string sourceFileName = "Logan Michael Sept 08 (193).jpg";
// string sourceDirectoryName = "=2008.2 Summer Logan Michael";
string sourceFileName = "Halloween 2006 (112).jpg";
string sourceDirectoryName = "Halloween 2006";
Item item;
bool reverse = false;
string original = "Original";