コード例 #1
0
 void Ex04()
 {
     When("the property validation is enabled", () => LocalizablePropertyAttributedValidation.EnableValidation(() => LocalizablePropertyAttributedValidation));
     When("the invalid value is set in ja-JP culture", () => SetValue("規定の長さよりも長い値", LocalizablePropertyAttributedValidation));
     Then("the ErrorsChanged event should be raised", () => ErrorsChangedRaised);
     AssertValidationError(LocalizablePropertyAttributedValidation, "ローカライズ可能なプロパティは10文字以内で入力してください。");
 }
コード例 #2
0
 void Ex03()
 {
     When("the property validation is enabled", () => LocalizablePropertyAttributedValidation.EnableValidation(() => LocalizablePropertyAttributedValidation));
     When("the invalid value is set in en-US culture", () => SetValue("long values", LocalizablePropertyAttributedValidation));
     Then("the ErrorsChanged event should be raised", () => ErrorsChangedRaised);
     AssertValidationError(LocalizablePropertyAttributedValidation, "Please enter Localizable Property within 10 characters.");
 }