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);
}
}