public void ShouldHaveTwoControlsInCollection() { var controlsCollection = new CurrentControlsCollection(); var viewTest = GetViewTest(MethodName.MethodFour); controlsCollection.Populate(viewTest); controlsCollection.Count.ShouldBe(2); }
public void ShouldPopulateParamsCollectionWithInstances() { var controlsCollection = new CurrentControlsCollection(); var paramsCollection = GetParamsCollection(MethodName.MethodFour); controlsCollection.Populate(paramsCollection); paramsCollection.Items.ElementAt(0).Value.ShouldBe(controlsCollection[0]); paramsCollection.Items.ElementAt(3).Value.ShouldBe(controlsCollection[1]); }