public void RequiredForCompletenessShouldValidateTheRequiredForCompletiondAttributeWhenHasMarkedAttribute()
        {
            var sut = new RequireForCompletnessValidatorWithISValidCalls(new GeneralViewModelThatDoesNotHaveAnyAttributes());

            Assert.AreEqual(0, sut.All.Count);
            Assert.AreEqual(0, sut.Failed.Count);
        }
        public void RequiredForCompletenessShouldValidateTheRequiredForCompletiondBaseWhenPropertiesHAsNoValues()
        {
            var sut = new RequireForCompletnessValidatorWithISValidCalls(new GeneralModelThatHaveRequiredForCompletnessBaseAttributes());

            Assert.AreEqual(2, sut.All.Count);
            Assert.AreEqual(2, sut.Failed.Count);
        }
 public void RequiredForCompletenessShouldValidateTheRequiredForCompletiondAttributeWhenSomePropertiesMarkedHasValuesSomeDont()
 {
     var sut = new RequireForCompletnessValidatorWithISValidCalls(new GeneralModelThatHaveRequiredForCompletnessBaseAttributes
     {
         AppAcronym = 3
     });
     Assert.AreEqual(2, sut.All.Count);
     Assert.AreEqual(1, sut.Failed.Count);
 }
        public void RequiredForCompletenessShouldValidateTheRequiredForCompletiondAttributeWhenPropertiesHAsNoValues()
        {
            var sut = new RequireForCompletnessValidatorWithISValidCalls(new GeneralModelThatHaveRequiredForCompletnessBaseAttributes());

            var all = sut.All;
            var failed = sut.Failed;
            Assert.IsNotNull(all);
            Assert.IsNotNull(failed);
        }
 public void RequiredForCompletenessShouldValidateTheRequiredForCompletiondAttributeWhenAllPropertiesMarkedHasValuesButOneValueDoesNotSatisfyTheMinValueValidation()
 {
     var sut = new RequireForCompletnessValidatorWithISValidCalls(new GeneralModelThatHaveRequiredForCompletnessBaseAttributes
     {
         AppAcronym = 0,
         AppVersion = ""
     });
     Assert.AreEqual(2, sut.All.Count);
     Assert.AreEqual(1, sut.Failed.Count);
 }
 public void RequiredForCompletenessThrowNullRefrenceExceptionWhenSuppliedObjectIsNull()
 {
     var sut = new RequireForCompletnessValidatorWithISValidCalls(null);
     Assert.IsNull(sut);
 }