public void IsBuilder_Required_IsRequired()
 {
     isBuilder.Required();
     Assert.True(metadata.Required.Value);
 }
Beispiel #2
0
 public void SettingRequiredResultsInMetadataRequiredAnd1RequiredRule()
 {
     isBuilder.Required();
     Assert.True(metadata.Required.Value);
     Assert.Equal(1, metadata.Rules.OfType <RequiredRule>().Count());
 }