41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
using Upsilon.BaseTypes;
|
|
using Upsilon.Binder;
|
|
using Upsilon.Evaluator;
|
|
using Upsilon.StandardLibraries;
|
|
using Xunit;
|
|
|
|
namespace UpsilonTests
|
|
{
|
|
[Collection("collection")]
|
|
public abstract class TestClass
|
|
{
|
|
public EvaluationScope StaticScope { get; }
|
|
public BoundScope BoundScope { get; }
|
|
|
|
public TestClass(StaticScriptFixture fix)
|
|
{
|
|
StaticScope = fix.StaticScope;
|
|
BoundScope = fix.BoundScope;
|
|
}
|
|
}
|
|
|
|
[CollectionDefinition("collection")]
|
|
public class StaticScriptContext : ICollectionFixture<StaticScriptFixture>
|
|
{
|
|
|
|
}
|
|
|
|
public class StaticScriptFixture
|
|
{
|
|
public EvaluationScope StaticScope { get; }
|
|
public BoundScope BoundScope { get; }
|
|
|
|
public StaticScriptFixture()
|
|
{
|
|
var (evaluationScope, boundScope) = Upsilon.StandardLibraries.StaticScope.CreateStandardLibrary();
|
|
StaticScope = evaluationScope;
|
|
BoundScope = boundScope;
|
|
}
|
|
}
|
|
} |