Example #1
0
 /// <inheritdoc/>
 protected bool Equals(FeedElement other)
 {
     if (other == null)
     {
         return(false);
     }
     return(base.Equals(other) && IfZeroInstallVersion == other.IfZeroInstallVersion);
 }
Example #2
0
 public void TestFilterMismatch()
 {
     FeedElement.FilterMismatch(new EntryPoint()).Should().BeFalse();
     FeedElement.FilterMismatch(new EntryPoint {
         IfZeroInstallVersion = new VersionRange("0..")
     }).Should().BeFalse();
     FeedElement.FilterMismatch(new EntryPoint {
         IfZeroInstallVersion = new VersionRange("..!0")
     }).Should().BeTrue();
 }
 public void TestFilterMismatch()
 {
     Assert.IsFalse(FeedElement.FilterMismatch(new EntryPoint()));
     Assert.IsFalse(FeedElement.FilterMismatch(new EntryPoint {
         IfZeroInstallVersion = new VersionRange("0..")
     }));
     Assert.IsTrue(FeedElement.FilterMismatch(new EntryPoint {
         IfZeroInstallVersion = new VersionRange("..!0")
     }));
 }