public void IsLogicless() { var t = new IgnoredLogic(); t.ModuleContainer .Should() .BeNull(); }
public BaseModule[] Compile(Func <MemberInfo, BaseContainer> getContainer) { // cache constructor InstanceOf <T> .Create(); // store all the props/fields that we need var dict = new SortedDictionary <int, BaseModule>(); SetDecoratorModules(dict, DiscoverMembers(), getContainer); // fill up empty spaces with Ignored var last = dict.Keys.LastOrDefault(); for (var i = 0; i < last; i++) { if (!dict.ContainsKey(i)) { dict[i] = new IgnoredLogic(); } } // save it as an array return(dict.Values.ToArray()); }