public void no_match() { var reference = new IgnoreAssemblyReference { Package = "Test", Assembly = "Test2.dll" }; reference.Matches(new Dependency("Test"), "Test").ShouldBeFalse(); }
protected bool Equals(IgnoreAssemblyReference other) { return string.Equals(Package, other.Package) && string.Equals(Assembly, other.Assembly); }
public void matches_dependency_and_assembly_with_file_extension() { var reference = new IgnoreAssemblyReference { Package = "Test", Assembly = "Test.dll" }; reference.Matches(new Dependency("Test"), "Test").ShouldBeTrue(); }
protected bool Equals(IgnoreAssemblyReference other) { return(string.Equals(Package, other.Package) && string.Equals(Assembly, other.Assembly)); }