public void add_selection_values() { var fixture = new Fixture(); fixture.AddSelectionValues("States", "TX", "AR", "MO"); fixture.AddSelectionValues("Animals", "Lions", "Tigers", "Pumas"); fixture.GetSelectionValues("States") .ShouldHaveTheSameElementsAs("TX", "AR", "MO"); fixture.GetSelectionValues("Animals") .ShouldHaveTheSameElementsAs("Lions", "Tigers", "Pumas"); }
public void if_list_is_not_on_fixture_picks_up_from_cellHandling() { var handling = CellHandling.Basic(); handling.AddSystemLevelList("States", new[] { "TX", "MO", "AR" }); var fixture = new Fixture(); fixture.GetSelectionValues("States").ShouldBeEmpty(); var property = ReflectionHelper.GetProperty <CellTarget>(x => x.State); var cell = Cell.For(handling, property, fixture); cell.options.Select(x => x.value) .ShouldHaveTheSameElementsAs("TX", "MO", "AR"); }
public void if_list_is_not_on_fixture_picks_up_from_cellHandling() { var handling = CellHandling.Basic(); handling.AddSystemLevelList("States", new[] { "TX", "MO", "AR" }); var fixture = new Fixture(); fixture.GetSelectionValues("States").ShouldBeEmpty(); var property = ReflectionHelper.GetProperty<CellTarget>(x => x.State); var cell = Cell.For(handling, property, fixture); cell.options.Select(x => x.value) .ShouldHaveTheSameElementsAs("TX", "MO", "AR"); }