public void BuildFilterConfigHash_ShouldBeAffectedByEventLogName() { var original = new FilterConfiguration("filter", TimeSpan.FromHours(1), 100, "foobar", "bazqux"); var newConfig = new FilterConfiguration("filter", TimeSpan.FromHours(1), 100, "foobar", "foobar"); Assert.That(HashBuilder.BuildFilterConfigHash(original), Is.Not.EqualTo(HashBuilder.BuildFilterConfigHash(newConfig))); }
public void BuildFilterConfigHash_ShouldGenerateSameHash() { var config = new FilterConfiguration("filter", TimeSpan.FromHours(1), 100, "foobar", "bazqux"); Assert.That(HashBuilder.BuildFilterConfigHash(config), Is.EqualTo(HashBuilder.BuildFilterConfigHash(config))); }