public void PrevOfFirstElementShouldBeLastElement() { var enumerable = new List <int> { 1, 2, 3, 4 }; var collection = CircularCollection <int> .FromCollection(enumerable); //Assert.Equal(4, ); }
public void CanCreateCircularCollection() { var enumerable = new List <int> { 1, 2, 3, 4 }; var collection = CircularCollection <int> .FromCollection(enumerable); Assert.Equal(4, collection.Count); }
private void Start() { uiDisplayer = GetComponent <IFloatingUIComponent>(); var childrenTurretShopEntries = GetChildrenTurretShopEntries(); foreach (var childrenTurretShopEntry in childrenTurretShopEntries) { childrenTurretShopEntry.SetManager(this); } entries = new CircularCollection <FocusInteractor>(childrenTurretShopEntries); }