Exemplo n.º 1
0
        public void RemoveErrorLabels_should_have_expected_result(string[] errorLabels, string removeErrorLabel)
        {
            var subject = new MongoException(_message);
            foreach (var errorLabel in errorLabels)
            {
                subject.AddErrorLabel(errorLabel);
            }

            subject.RemoveErrorLabel(removeErrorLabel);

            subject.ErrorLabels.Should().Equal(errorLabels.Where(x => x != removeErrorLabel));
        }