示例#1
0
            public void Should_Throw_If_Settings_Are_Null()
            {
                // Given
                var fixture = new SpecFlowStepDefinitionReporterFixture();

                fixture.Settings = null;

                // When
                var result = Record.Exception(() => fixture.Run());

                // Then
                AssertEx.IsArgumentNullException(result, "settings");
            }
示例#2
0
            public void Should_Throw_If_Project_File_Is_Null()
            {
                // Given
                var fixture = new SpecFlowStepDefinitionReporterFixture();

                fixture.ProjectFile = null;

                // When
                var result = Record.Exception(() => fixture.Run());

                // Then
                AssertEx.IsArgumentNullException(result, "projectFile");
            }
示例#3
0
            public void Should_Append_BinFolder()
            {
                // Given
                var fixture = new SpecFlowStepDefinitionReporterFixture();

                fixture.Settings.BinFolder = "/Working/some-folder";

                // When
                var result = fixture.Run();

                // Then
                Assert.Equal("stepdefinitionreport \"/Working/Tests.csproj\" " +
                             "/binFolder:\"/Working/some-folder\"", result.Args);
            }
示例#4
0
            public void Should_Append_XsltFile()
            {
                // Given
                var fixture = new SpecFlowStepDefinitionReporterFixture();

                fixture.Settings.XsltFile = "/Working/template.xslt";

                // When
                var result = fixture.Run();

                // Then
                Assert.Equal("stepdefinitionreport \"/Working/Tests.csproj\" " +
                             "/xsltFile:\"/Working/template.xslt\"", result.Args);
            }
示例#5
0
            public void Should_Append_Out()
            {
                // Given
                var fixture = new SpecFlowStepDefinitionReporterFixture();

                fixture.Settings.Out = "/Working/out.html";

                // When
                var result = fixture.Run();

                // Then
                Assert.Equal("stepdefinitionreport \"/Working/Tests.csproj\" " +
                             "/out:\"/Working/out.html\"", result.Args);
            }