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(); }
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(); }
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(); }