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 TryResolveName_TwoFiles_SnapshotTestException()
        {
            // arrange
            ArrangeLiveUnitTestDirectory("Test1.cs", "Test1.cs");
            var testName = "Test1.Foo";

            // act
            Func <SnapshotFullName> action =
                () => LiveUnitTestingDirectoryResolver
                .TryResolveName(testName);

            // assert
            action.Should().Throw <SnapshotTestException>();
        }
        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);
        }