示例#1
0
            public void Should_Return_False_If_PullRequestSystem_Does_Not_Have_Capability()
            {
                // Given
                var log = new FakeLog();
                var pullRequestSystem = new FakePullRequestSystem(log);
                var capability        = new FakePullRequestSystemCapability(log, pullRequestSystem);

                // When
                pullRequestSystem.AddCapability(capability);

                // Then
                pullRequestSystem.HasCapability <FakeCheckingCommitIdCapability>().ShouldBeFalse();
            }
示例#2
0
            public void Should_Return_True_If_PullRequestSystem_Has_Capability()
            {
                // Given
                var log = new FakeLog();
                var pullRequestSystem = new FakePullRequestSystem(log);
                var capability        = new FakePullRequestSystemCapability(log, pullRequestSystem);

                // When
                pullRequestSystem.AddCapability(capability);

                // Then
                pullRequestSystem.HasCapability <FakePullRequestSystemCapability>().ShouldBeTrue();
            }