コード例 #1
0
        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)));
        }
コード例 #2
0
        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)));
        }