public void find_a_missing_attribute() { Step step = new Step().With("a:1,b:2"); step.Validate(cells).ShouldHaveTheSameElementsAs(new PropertyError { Attribute = "c", Code = PropertyErrorCode.Missing }); }
public void do_not_log_a_missing_attribute_if_the_cell_has_a_default_value() { Step step = new Step().With("b:2,c:3"); step.Validate(cells).Count.ShouldEqual(0); }
public void find_an_extra_attribute() { Step step = new Step().With("a:1,b:2,c:3,d:4"); step.Validate(cells).ShouldHaveTheSameElementsAs(new PropertyError { Attribute = "d", Code = PropertyErrorCode.Unknown }); }
public void all_valid_step() { Step step = new Step().With("a:1,b:2,c:3"); step.Validate(cells).Count.ShouldEqual(0); }