public void FromBsonDocument_should_return_expected_result_when_maxVariable_element_is_present( [Values("punct", "space")] string maxVariableString) { var document = new BsonDocument { { "locale", "en_US" }, { "maxVariable", maxVariableString } }; var result = Collation.FromBsonDocument(document); result.Alternate.Should().BeNull(); result.Backwards.Should().NotHaveValue(); result.CaseFirst.Should().BeNull(); result.CaseLevel.Should().NotHaveValue(); result.Locale.Should().Be("en_US"); result.MaxVariable.Should().Be(Collation.ToCollationMaxVariable(maxVariableString)); result.Normalization.Should().NotHaveValue(); result.NumericOrdering.Should().NotHaveValue(); result.Strength.Should().BeNull(); }
public void ToCollationMaxVariable_should_return_expected_result(string value, CollationMaxVariable expectedResult) { var result = Collation.ToCollationMaxVariable(value); result.Should().Be(expectedResult); }