public void IndexerValidatesPropertyNameWithValidValue() { var viewModel = new StubViewModel(); viewModel.RequiredProperty = "Some Value"; Assert.IsNull(viewModel["RequiredProperty"]); }
public void IndexerReturnErrorMessageForRequestedInvalidProperty() { var viewModel = new StubViewModel { Requiredproperty = null, SomeOtherProperty = null }; var msg = viewModel["SomeOtherProperty"]; Assert.AreEqual("The SomeOtherProperty field is required.", msg); }
public void IndexerReturnsErrorMessageForRequestedInvalidProperty() { var viewModel = new StubViewModel { RequiredProperty = null, SomeOtherProperty = null }; var msg = viewModel["SomeOtherProperty"]; Assert.AreEqual("SomeOtherProperty 필드가 필요합니다.", msg); }
public void IndexerReturnsErrorMessageForRequestedInvalidProperty() { var viewModel = new StubViewModel() { RequiredProperty = null, SomeOtherProperty = null }; var msg = viewModel["SomeOtherProperty"]; Assert.AreEqual("El campo SomeOtherProperty es obligatorio.", msg); }
public void IndexerPropertyValidatesPropertyNameWithInvalidValue() { var viewModel = new StubViewModel(); Assert.IsNotNull(viewModel["RequiredProperty"]); }
public void IDataErrorInfo_ErrorProperty_IsNotSupported() { var viewModel = new StubViewModel(); var value = viewModel.Error; }