public void OpenComplex_ProjectHasTestResults() { OpenProjectCommand openCommand = new OpenProjectCommand(); openCommand.Execute(Path.Combine(ResourcesDirectory, "TestResults" + Project.FileExtension)); Project loaded = ProjectManager.CurrentProject; Assert.AreEqual("Test Results", loaded.Name); Assert.AreEqual(Platform.x86, loaded.Platform); Assert.AreEqual(TimeSpan.Zero, loaded.Frequency); string expectedFileName = Path.Combine(Directory.GetCurrentDirectory(), "..", "..", "..", "DummyTestProjectsForTesting", "DummyCSharpTestProject", "bin", "Debug", "DummyCSharpTestProject.dll"); Assert.IsTrue(Path.GetFileName(expectedFileName) == Path.GetFileName(loaded.FullPathToDll)); Assert.AreEqual(3, loaded.TestResults.Count); List <TestResult> expected = new List <TestResult>() { new TestResult(@"C:\Users\alawi\Source\Repos\TestRunner\TestRunnerUnitTests\Resources\TestResult1.ftr"), new TestResult(@"C:\Users\alawi\Source\Repos\TestRunner\TestRunnerUnitTests\Resources\TestResult2.ftr"), new TestResult(@"C:\Users\alawi\Source\Repos\TestRunner\TestRunnerUnitTests\Resources\TestResult3.ftr"), }; AssertExt.ContentsEqual <List <TestResult>, TestResult>(expected, loaded.TestResults, TestRunnerEqualityFunctions.TestResultEquality); }