public void TryResolveName_NoFileMatch_ResultIsNull()
        {
            // arrange
            ArrangeLiveUnitTestDirectory("Test2.cs");
            var testName = "Test1.Foo";

            // act
            SnapshotFullName fullName = LiveUnitTestingDirectoryResolver
                                        .TryResolveName(testName);

            // assert
            fullName.Should().BeNull();
        }
        public void CheckForSession_PathSet_ReturnSame()
        {
            // arrange
            var snapshotFullName = new SnapshotFullName("filename", "dirname");

            // act
            SnapshotFullName fullNameResult = LiveUnitTestingDirectoryResolver
                                              .CheckForSession(snapshotFullName);

            // assert
            fullNameResult.Should().NotBeNull();
            fullNameResult.Filename.Should().Be(snapshotFullName.Filename);
            fullNameResult.FolderPath.Should().Be(snapshotFullName.FolderPath);
        }
        public void TryResolveName_OneFile_FullNameCorrect()
        {
            // arrange
            var tempDir  = ArrangeLiveUnitTestDirectory("Test1.cs");
            var testName = "Test1.Foo";

            // act
            SnapshotFullName fullName = LiveUnitTestingDirectoryResolver
                                        .TryResolveName(testName);

            // assert
            fullName.Should().NotBeNull();
            fullName.FolderPath.Should().Be(Path.Combine(tempDir, "1"));
            fullName.Filename.Should().Be(testName);
        }