Beispiel #1
0
            public void Should_Set_Production_Flag_True_()
            {
                // Given
                NpmPruneSettings settings = new NpmPruneSettings();

                // When
                settings.ForProduction();

                // Then
                settings.Production.ShouldBe(true);
            }
Beispiel #2
0
            public void Should_Throw_If_Settings_Are_Null()
            {
                // Given
                NpmPruneSettings settings = null;

                // When
                var result = Record.Exception(() => settings.ForProduction());

                // Then
                result.IsArgumentNullException("settings");
            }
Beispiel #3
0
            public void Should_Set_Production_Flag_False()
            {
                // Given
                NpmPruneSettings settings = new NpmPruneSettings()
                {
                    Production = true
                };

                // When
                settings.ForProduction(false);

                // Then
                settings.Production.ShouldBe(false);
            }