Exemplo n.º 1
0
        public void CheckValues(bool ignoreCase, string expected, string actual, ComparisonResultType expectedResult)
        {
            var plugin = new SimpleStringComparerPlugin()
            {
                IgnoreCase = ignoreCase
            };

            var output = plugin.TryCompare("key", expected, actual);

            Assert.Equal(expectedResult, output.ComparisonResultType);
        }
Exemplo n.º 2
0
        public void CheckNullHandling(string expected, string actual)
        {
            var plugin = new SimpleStringComparerPlugin()
            {
                TreatNullAndEmptyStringsAsEqual = true
            };

            var output = plugin.TryCompare("pair", expected, actual);

            Assert.Equal(ComparisonResultType.Equal, output.ComparisonResultType);
        }