Ejemplo n.º 1
0
        public void NullableIndexDoesNotCastTwice()
        {
            var indexDefinition = new NullableIndex {
                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 NullableIndexDoesNotCastTwice()
        {
            var indexDefinition = new NullableIndex {
                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)"));
        }