public void Should_Throw_If_Scope_Is_WhiteSpace()
            {
                // Given
                var settings = new NpmAddUserSettings();

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

                // Then
                result.IsArgumentNullException("scope");
            }
            public void Should_Set_Scope()
            {
                // Given
                var settings = new NpmAddUserSettings();

                // When
                settings.ForScope("@bar");

                // Then
                Assert.Equal("@bar", settings.Scope);
            }
            public void Should_Throw_If_Settings_Are_Null()
            {
                // Given
                NpmAddUserSettings settings = null;

                // When
                var result = Record.Exception(() => settings.ForScope("@bar"));

                // Then
                result.IsArgumentNullException("settings");
            }
            public void Should_Throw_If_Scope_Does_Not_Start_With_At()
            {
                // Given
                var settings = new NpmAddUserSettings();

                // When
                var result = Record.Exception(() => settings.ForScope("bar"));

                // Then
                result.IsArgumentException("scope");
            }