public void Should_find_the_movie_in_the_library()
 {
     this.Sut.Contents
     .Should()
     .Have
     .SameValuesAs(Enumerable.Create(this._expected));
 }
 public int Hyperlinq_Create_ForEach() 
 {
     var sum = 0;
     foreach(var item in Enumerable.Create<Enumerator, int>(GetEnumerator))
         sum += item;
     return sum;
 } 
 private void RegisterModules()
 {
     _ninjectModules = Enumerable.Create <INinjectModule>(
         new CordDomainModule(),
         new UtilitiesDependenciesModule(),
         new ViewModelDependenciesModule(),
         new SagaDependenciesModule(),
         new GenericInfrastructureDependenciesModule());
 }
        public int Hyperlinq_Create_For()
        {
            var enumerable = Enumerable.Create(GetEnumerator, Count, GetItem);
            var sum        = 0;

            for (var index = 0; index < enumerable.Count; index++)
            {
                sum += enumerable[index];
            }
            return(sum);
        }
 /// <summary>
 /// Create the collection
 /// </summary>
 protected override void WhenIRun()
 {
     this._actual = Enumerable.Create(1, 2, 3, 4, 5);
 }
Exemplo n.º 6
0
 public Builder Append(char value)
 {
     return(this.Append(Enumerable.Create(value)));
 }
Exemplo n.º 7
0
 public void IsEnumerate(string expected, Builder actual)
 {
     Assert.Equal(Enumerable.Create((Generic.IEnumerable <char>)expected), Enumerable.Create((Generic.IEnumerable <char>)actual));
 }