public void HandleIncludeExcludeFiles_WhenJsonObjectIsNull_Throws()
        {
            var files = new IncludeExcludeFiles();

            ArgumentNullException exception = Assert.Throws <ArgumentNullException>(
                () => files.HandleIncludeExcludeFiles(jsonObject: null));

            Assert.Equal("jsonObject", exception.ParamName);
        }
        public void HandleIncludeExcludeFiles_WithNullForFiles_ReturnsFalse(string json)
        {
            JObject jsonObject = JObject.Parse(json);
            var     files      = new IncludeExcludeFiles();

            Assert.False(files.HandleIncludeExcludeFiles(jsonObject));
            Assert.Null(files.Exclude);
            Assert.Null(files.ExcludeFiles);
            Assert.Null(files.Include);
            Assert.Null(files.IncludeFiles);
        }
        public void HandleIncludeExcludeFiles_WithValidValueForInclude_ReturnsTrue(
            string json,
            params string[] expectedResults)
        {
            JObject jsonObject = JObject.Parse(json);
            var     files      = new IncludeExcludeFiles();

            Assert.True(files.HandleIncludeExcludeFiles(jsonObject));

            Assert.Null(files.Exclude);
            Assert.Null(files.ExcludeFiles);
            Assert.Equal(expectedResults, files.Include);
            Assert.Null(files.IncludeFiles);
        }