Exemplo n.º 1
0
        public void Filter_ProjectNull_ThrowsArgumentNullException()
        {
            var projectFilterArgs = new ProjectFilterArgs();

            var sut = new FilterName();

            Assert.Throws <ArgumentNullException>(() => sut.Filter(null, projectFilterArgs));
        }
Exemplo n.º 2
0
        public void Filter_ProjectFilterArgsNull_ReturnsTrue()
        {
            var project = new Project {
                Name = "TestProject"
            };

            var sut    = new FilterName();
            var actual = sut.Filter(project, null);

            actual.Should().Be(true);
        }
Exemplo n.º 3
0
        public void Filter_ReturnsCorrectResult(string projectName, string filter, bool expected)
        {
            var project = new Project {
                Name = projectName
            };
            var projectFilterArgs = new ProjectFilterArgs {
                Name = filter
            };

            var sut = new FilterName();

            var actual = sut.Filter(project, projectFilterArgs);

            actual.Should().Be(expected);
        }