示例#1
0
        public void ShouldSayItDoesNotHaveMatchingProjectAssemblyNameWhenItWasNotCreatedWithMatchingOne()
        {
            //GIVEN
            var searchedAssemblyName = Any.String();
            var project = new DotNetStandardProjectBuilder
            {
                AssemblyName = Any.OtherThan(searchedAssemblyName)
            }.Build();

            //WHEN
            var hasProject = project.HasProjectAssemblyNameMatching(Pattern.WithoutExclusion(searchedAssemblyName));

            //THEN
            hasProject.Should().BeFalse();
        }
示例#2
0
        public void ShouldSayItHasProjectIdMatchingTheOneItWasCreatedWith()
        {
            //GIVEN
            var assemblyName = Any.String();
            var project      = new DotNetStandardProjectBuilder
            {
                AssemblyName = assemblyName
            }.Build();

            //WHEN
            var hasProject = project.HasProjectAssemblyNameMatching(Pattern.WithoutExclusion(assemblyName));

            //THEN
            hasProject.Should().BeTrue();
        }
示例#3
0
        public void ShouldSayItHasProjectAssemblyNameMatchingBlobPattern()
        {
            //GIVEN
            var assemblySuffix = Any.String();
            var assemblyName   = Any.String() + "." + assemblySuffix;
            var project        = new DotNetStandardProjectBuilder
            {
                AssemblyName = assemblyName
            }.Build();
            string assemblyNamePattern = "*." + assemblySuffix;

            //WHEN
            var hasProject = project.HasProjectAssemblyNameMatching(Pattern.WithoutExclusion(assemblyNamePattern));

            //THEN
            hasProject.Should().BeTrue();
        }