Exemplo n.º 1
0
            public void Should_Remove_Leading_Directory_Separator(string filePath, string expectedValue)
            {
                // Given
                var format = new FakeMsBuildLogFileFormat(new FakeLog());

                // When
                var result = format.RemoveLeadingDirectorySeparator(filePath);

                // Then
                result.ShouldBe(expectedValue);
            }
Exemplo n.º 2
0
            public void Should_Throw_If_FilePath_Is_WhiteSpace()
            {
                // Given
                var format   = new FakeMsBuildLogFileFormat(new FakeLog());
                var filePath = " ";

                // When
                var result = Record.Exception(() => format.RemoveLeadingDirectorySeparator(filePath));

                // Then
                result.IsArgumentOutOfRangeException("filePath");
            }
Exemplo n.º 3
0
            public void Should_Throw_If_FilePath_Is_Null()
            {
                // Given
                var    format   = new FakeMsBuildLogFileFormat(new FakeLog());
                string filePath = null;

                // When
                var result = Record.Exception(() => format.RemoveLeadingDirectorySeparator(filePath));

                // Then
                result.IsArgumentNullException("filePath");
            }