public void AnonymousNullableIndexDoesNotCastTwice() { var indexDefinition = new AnonymousNullableIndex { Conventions = new DocumentConvention() }.CreateIndexDefinition(); Assert.DoesNotContain("(string)(string)", indexDefinition.Map, StringComparison.OrdinalIgnoreCase); // Include also (String)(string)|(string)(String) cases. Assert.DoesNotContain("(System.String)(string)", indexDefinition.Map); Assert.DoesNotContain("(string)(System.String)", indexDefinition.Map); Assert.DoesNotContain("(System.String)(System.String)", indexDefinition.Map); }
public void AnonymousNullableIndexDoesNotCastTwice() { var indexDefinition = new AnonymousNullableIndex { Conventions = new DocumentConventions() }.CreateIndexDefinition(); Assert.False(indexDefinition.Maps.Contains("(string)(string)")); // Include also (String)(string)|(string)(String) cases. Assert.False(indexDefinition.Maps.Contains("(System.String)(string)")); Assert.False(indexDefinition.Maps.Contains("(string)(System.String)")); Assert.False(indexDefinition.Maps.Contains("(System.String)(System.String)")); }