public void VerifyProperties() { var target = Target; var model = target.Current; ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, nameof(target.IsToggled), model, nameof(model.IsChecked), true, true, false); }
public void CorrectlyExpand() { var target = Target; var model = target.Current; ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, model, nameof(target.IsExpanded), true, true, false); }
public void CorrectlySetContent(string content) { var target = Target; var model = target.Current; ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, model, nameof(target.Content), true, content); }
public void VerifyConnectedProperties() { var target = Target; var model = target.Current; ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(model, nameof(model.ShowSearchBox), target, nameof(target.IsSearchBoxVisible), true, false); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(model, nameof(model.AllowColorEditing), target, nameof(target.AllowColorEditing), true, false); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(model, nameof(model.ShowColorPicker), target, nameof(target.ShowColorPicker), true, false); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(model, nameof(model.ShowColorVisibilityControls), target, nameof(target.ShowColorVisibilityControls), true, false); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(model, nameof(model.ShowToolBox), target, nameof(target.IsToolBoxVisible), true, false); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(model, nameof(model.ShowBottomToolBox), target, nameof(target.IsBottomToolBoxVisible), true, false); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(model, nameof(model.ShowSettingsBox), target, nameof(target.IsSettingsBoxVisible), true, false); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(model, nameof(model.IsAllVisible), target, nameof(target.IsAllVisible), true, false); // ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, nameof(target.IsColorSelecting), view, nameof(view.IsColorSelecting), true, false); ConnectedPropertiesAssert.VerifyConnectedProperties(target, nameof(target.Filter), model, nameof(model.Filter), true, new ValueTuple <object, object>("test string", "test string"), // new ValueTuple<object, object>(null, null), // new ValueTuple<object, object>(string.Empty, string.Empty), new ValueTuple <object, object>("\\Items+ddd", "\\Items+ddd")); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(model, nameof(model.FilterWatermark), target, nameof(target.FilterWaterMark), true, "Find...", "Go and find me...", string.Empty, null); }
public void VerifyState() { var target = Target; var model = target.Current; ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, model, nameof(target.Text), true, "12", "12.3", "0"); }
public void VerifyApi() { var target = Target; var model = target.Current; var testContext = CreateTestValidationContext(); model.ValidationContext = testContext; ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, nameof(target.IsFilterVisible), model, nameof(model.ShowFilterBox), true, true, false); ValidationTreeAssert.Match(target, testContext); }
public void VerifyApi() { var target = Target; var model = target.Current; //ConnectedPropertiesAssert.VerifyConnectedProperties(model, nameof(model.Category), // target, nameof(target.Category), true, // new ValueTuple<string, string>("Debug", "Debug"), // new ValueTuple<string, string>("WrongData!", string.Empty), // new ValueTuple<string, string>("Warning", "Warning"), // new ValueTuple<string, string>("Error", "Error")); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, nameof(target.IsToggled), model, nameof(model.IsChecked), true, false, true); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, nameof(target.EntryCount), model, nameof(model.EntryCount), true, 1, 20); }
public void VerifyApi() { var target = Target; var model = target.Current; ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, model, nameof(target.Minimum), true, -100d, 200, 0.1, 0); model.Minimum = -1000; ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, model, nameof(target.Maximum), true, -100d, 200, 0.1, 0); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, model, nameof(target.LowerValue), true, 0.2d, 0.1, 1, 0); ConnectedPropertiesAssert.VerifyIdenticalConnectedProperties(target, model, nameof(target.UpperValue), true, 0.2d, 0.1, 1, 0); }