示例#1
0
        public void AddFault_NewFault_StoresFault()
        {
            var obj   = new object();
            var fault = A.Fake <ValidationFault>();

            var context = new ValidationContext <object>(obj, false);

            context.AddFaults(new[] { fault });

            Assert.Single((IEnumerable)context.Faults);
            Assert.Contains(fault, context.Faults);
        }