public void Should_Not_Warn_If_RequiredPackage_Is_Referenced()
        {
            // given
            const string required = "Some.Analyser";
            var          fixture  = new RequiredReferencesFixture();

            fixture.WithReferencedPackage(required);
            fixture.WithRequiredReferences(required);

            // when
            fixture.Execute();

            // then
            fixture.BuildEngine.WarningEvents.Should().HaveCount(0);
        }
        public void Should_Warn_If_RequiredPackage_Is_Not_Referenced()
        {
            // given
            var fixture = new RequiredReferencesFixture();

            fixture.WithReferencedPackage("Cool.Ref.Project");
            fixture.WithRequiredReferences("Some.Analyser");

            // when
            fixture.Execute();

            // then
            fixture.BuildEngine.WarningEvents.Should().HaveCount(1);
            var theEvent = fixture.BuildEngine.WarningEvents.Single();

            theEvent.Code.Should().Be("CCG0005");
        }