public void TryMatch_DifferentType() { // Arrange DynamicPropertyPathSegment leftSegment = new DynamicPropertyPathSegment("property"); KeyValuePathSegment rightSegment = new KeyValuePathSegment("value"); // Act Dictionary<string, object> values = new Dictionary<string, object>(); bool result = leftSegment.TryMatch(rightSegment, values); // Assert Assert.False(result); }
public void TryMatch_DifferentType() { // Arrange DynamicPropertyPathSegment leftSegment = new DynamicPropertyPathSegment("property"); KeyValuePathSegment rightSegment = new KeyValuePathSegment("value"); // Act Dictionary <string, object> values = new Dictionary <string, object>(); bool result = leftSegment.TryMatch(rightSegment, values); // Assert Assert.False(result); }
public void TryMatch() { // Arrange DynamicPropertyPathSegment leftSegment = new DynamicPropertyPathSegment("property"); DynamicPropertyPathSegment rightSegment = new DynamicPropertyPathSegment("property"); // Act Dictionary<string, object> values = new Dictionary<string, object>(); bool result = leftSegment.TryMatch(rightSegment, values); // Assert Assert.True(result); }
public void TryMatch() { // Arrange DynamicPropertyPathSegment leftSegment = new DynamicPropertyPathSegment("property"); DynamicPropertyPathSegment rightSegment = new DynamicPropertyPathSegment("property"); // Act Dictionary <string, object> values = new Dictionary <string, object>(); bool result = leftSegment.TryMatch(rightSegment, values); // Assert Assert.True(result); }