public void DifferentSequences_WhenSequencesAreDifferent(string source, string target) { var settings = _settingsBuilder .AllowLocalization() .WithSourceDecimalSeparators(comma: false, period: true) .WithSourceThousandSeparators(comma: true, period: false) .WithTargetDecimalSeparators(comma: false, period: true) .WithTargetThousandSeparators(comma: true, period: false) .Build(); settings.Setup(s => s.HindiNumberVerification).Returns(true); var numberVerifierMain = new NumberVerifierMain(settings.Object); var errorMessage = numberVerifierMain.CheckSourceAndTarget(source, target); Assert.Collection(errorMessage, m => { var expectedMessage = PluginResources.NumberParser_Message_TheGroupValidIsOutOfRange; Assert.Contains(expectedMessage.Substring(0, expectedMessage.Length - 4), m.ErrorMessage); }, m => Assert.Equal(PluginResources.Error_DifferentSequences, m.ErrorMessage)); }