public void StripExtensionFromReferenceName(string assemblyName, string expectedReferenceName)
            {
                // arrange
                var mockProject = MockGenerator.CreateMockMSBuildProject();
                mockProject.Setup(p => p.ReferenceExists(expectedReferenceName)).Verifiable();

                // act
                var projectSystem = new NuGetMsBuildProjectSystem(@"C:\DummyPath\Dummy.csproj", MockGenerator.CreateMSBuildProjectFactory(mockProject.Object));

                // assert
                Assert.False(projectSystem.ReferenceExists(assemblyName));
                mockProject.Verify();

            }
            public void OnlySearchReferenceItemType()
            {
                // arrange
                var mockProject = MockGenerator.CreateMockMSBuildProject();
                mockProject.Setup(p => p.ReferenceExists("DummyReference")).Returns(false).Verifiable();
                mockProject.Setup(p => p.ItemExists("Content", "DummyReference")).Returns(true);

                // act
                var projectSystem = new NuGetMsBuildProjectSystem(@"C:\DummyPath\Dummy.csproj", MockGenerator.CreateMSBuildProjectFactory(mockProject.Object));

                // assert
                Assert.False(projectSystem.ReferenceExists("DummyReference.dll"));
                mockProject.Verify();
            }
            public void IfNameNullOrEmpty_Throws()
            {
                var projectSystem = new NuGetMsBuildProjectSystem(@"C:\DummyPath\Dummy.csproj", MockGenerator.CreateMSBuildProjectFactory());

                Assert.Throws<ArgumentNullException>(() => projectSystem.ReferenceExists(null));
                Assert.Throws<ArgumentNullException>(() => projectSystem.ReferenceExists(string.Empty));
            }