> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/ai-tree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/ai-tree/api/runtime/eqtest.md).

# EQTest

Type description and basic instructions.

### Description

EQTest is base abstract class for all environment query [tests](/ai-tree/environment-query-system/useful-objects/environment-query/tests.md).

[Tests](/ai-tree/environment-query-system/useful-objects/environment-query/tests.md) are used to define shape of area that is covered by [EQS](/ai-tree/environment-query-system/quick-start.md).

To create a environment query [tests](/ai-tree/environment-query-system/useful-objects/environment-query/tests.md) you should inherit from EQTest class and implement logic that is described below.

### CalculateWeight

When inheriting from EQTest you have to override CalculateWeight method.

```csharp
public class ExampleEQTest : EQTest
{
    protected override float CalculateWeight(EQItem item)
    {
        throw new System.NotImplementedException();
    }
}
```

* CalculateWeight returns weight of the given [item](/ai-tree/environment-query-system/items.md).
