示例#1
0
        public static void IntListResultErrorCreation(IEnumerable <Error> errors, ResultClass resultClass)
        {
            var expected = Result.WithErrors <List <int> >(errors, resultClass);
            var cache    = new ResultCache(1);
            var actual   = (Result <List <int> >)cache.RetrieveOrCacheWithErrors(typeof(List <int>), errors, resultClass);

            Assert.True(ResultEqual(expected, actual));
        }