public void ValidateTypes_IdentifiesInvalidTypes()
        {
            var sut = new SsrsObjectTypesParser();

            Assert.That(sut.ValidateTypes(new [] { "dataset", "something", "notvalid" }, out var invalidTypes), Is.False);
            Assert.That(invalidTypes, Is.EqualTo("something, notvalid"));
        }
        public void GetTypeFilter_ReturnsAllFlagsWhenNoTypesSpecified()
        {
            var sut = new SsrsObjectTypesParser();

            var filter = sut.GetTypeFilter(new string[0]);

            Assert.That(filter, Is.EqualTo(SsrsFilterObjectTypes.All));
        }
        public void GetTypeFilter_ReturnsMultipleFlags()
        {
            var sut = new SsrsObjectTypesParser();

            var filter = sut.GetTypeFilter(new [] { "dataset", "report" });

            Assert.That(filter, Is.EqualTo(SsrsFilterObjectTypes.DataSet | SsrsFilterObjectTypes.Report));
        }
        public void ValidateTypes_ReturnsTrueWhenNoInvalidTypes()
        {
            var sut = new SsrsObjectTypesParser();

            Assert.That(sut.ValidateTypes(new [] { "dataset", "report" }, out _), Is.True);
        }