public void refSyntax_throws_if_not_3_elements_present(int paramsCount) { string[] parameters = Randomizer.Array(() => Randomizer.String(), paramsCount); var filter = new Filter("[ref]" + string.Join(",", parameters), "value", FilterOperation.Contains); Assert.Throws <ArgumentException>( () => filter.ComposeXPath() ); }
public void throws_if_requested_to_compose_xpath_from_refSyntax_for_greater() { string[] parameters = Randomizer.Array(() => Randomizer.String(), 3); var filter = new Filter("[ref]" + string.Join(",", parameters), "some-value", FilterOperation.Greater); Assert.Throws <NotSupportedException>( () => filter.ComposeXPath() ); }