Exemplo n.º 1
0
            public void Should_Throw_If_Root_Is_Null()
            {
                // Given
                var fixture = new DotNetFormatterFixture();

                fixture.Settings = new DotNetFormatSettings();
                fixture.GivenDefaultToolDoNotExist();

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

                // Then
                AssertEx.IsArgumentNullException(result, "root");
            }
Exemplo n.º 2
0
            public void Should_Throw_If_Settings_Are_Null()
            {
                // Given
                var fixture = new DotNetFormatterFixture();

                fixture.Root     = "./src/project";
                fixture.Settings = null;
                fixture.GivenDefaultToolDoNotExist();

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

                // Then
                AssertEx.IsArgumentNullException(result, "settings");
            }