public void TryMatch_ReturnsTrue()
        {
            // Arrange
            EdmEntityType       entityType = new EdmEntityType("NS", "entity");
            TypeSegmentTemplate template   = new TypeSegmentTemplate(new TypeSegment(entityType, null));
            TypeSegment         segment    = new TypeSegment(entityType, null);

            // Act
            Dictionary <string, object> values = new Dictionary <string, object>();
            bool result = template.TryMatch(segment, values);

            // Assert
            Assert.True(result);
            Assert.Empty(values);
        }
        public void TryMatch_ReturnsFalse()
        {
            // Arrange
            EdmEntityType entityType1 = new EdmEntityType("NS", "entity1");
            EdmEntityType entityType2 = new EdmEntityType("NS", "entity2");

            TypeSegmentTemplate template = new TypeSegmentTemplate(new TypeSegment(entityType1, null));
            TypeSegment         segment  = new TypeSegment(entityType2, null);

            // Act
            Dictionary <string, object> values = new Dictionary <string, object>();
            bool result = template.TryMatch(segment, values);

            // Assert
            Assert.False(result);
        }