public void Type_test()
            {
                var empty = EH.Empty <object>();

                this.outputter.WriteLine(
                    empty.GetType().ToString());
            }
Beispiel #2
0
 public IEnumerable <T> Generate()
 {
     return(EH.Select(
                this.gates,
                gate => this.generator(gate))
            ?? EH.Empty <T>());
 }
Beispiel #3
0
        public virtual T Run <T>(
            Do <T> method         = null,
            string dependencyName = null)
        {
            T t;

            foreach (var d in this.dependencies
                     ?? EH.Empty <Dependency>())
            {
                if (this.tryGet(
                        d?.Content,
                        d?.Name,
                        dependencyName,
                        out t))
                {
                    goto invoke;
                }
            }

            return(default);
 public void Not_null()
 {
     Assert.NotNull(
         EH.Empty <object>());
 }