コード例 #1
0
        public void TestIsEquivalent1()
        {
            var config = new LogEntryCountAnalyserConfiguration();

            config.IsEquivalent(null).Should().BeFalse();
            config.IsEquivalent(new Mock <ILogAnalyserConfiguration>().Object).Should().BeFalse();
        }
コード例 #2
0
        public void TestIsEquivalent2()
        {
            var config1 = new LogEntryCountAnalyserConfiguration();
            var config2 = new LogEntryCountAnalyserConfiguration();

            config1.IsEquivalent(config2).Should().BeTrue();
            config2.IsEquivalent(config1).Should().BeTrue();
        }
コード例 #3
0
        public void TestIsEquivalent3()
        {
            var config1 = new LogEntryCountAnalyserConfiguration();
            var config2 = new LogEntryCountAnalyserConfiguration
            {
                QuickFilters =
                {
                    new QuickFilter
                    {
                        Value = "foo"
                    }
                }
            };

            config1.IsEquivalent(config2).Should().BeFalse();
            config2.IsEquivalent(config1).Should().BeFalse();
        }