public void InstanceTypeIndexDefaultTest() { List <InstanceType> resultSet = InstanceType.index(cloudID, "default"); Assert.IsNotNull(resultSet); Assert.IsTrue(resultSet.Count > 0); }
public void InstanceTypeIndexFullTest() { List <Filter> filters = new List <Filter>(); filters.Add(new Filter("name", FilterOperator.Equal, "extra")); List <InstanceType> filteredResultSet = InstanceType.index(cloudID, filters, "default"); Assert.IsNotNull(filteredResultSet); Assert.IsTrue(filteredResultSet.Count > 0); List <InstanceType> resultSet = InstanceType.index(cloudID); Assert.IsNotNull(resultSet); Assert.IsTrue(resultSet.Count > 0); Assert.IsTrue(filteredResultSet.Count <= resultSet.Count); }