예제 #1
0
            public void Should_Set_Json_Flag_True_()
            {
                // Given
                NpmPruneSettings settings = new NpmPruneSettings();

                // When
                settings.Json();

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

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

                // Then
                result.IsArgumentNullException("settings");
            }
예제 #3
0
            public void Should_Set_Json_Flag_False()
            {
                // Given
                NpmPruneSettings settings = new NpmPruneSettings()
                {
                    Json = true
                };

                // When
                settings.Json(false);

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