If you use a fixture that embeds another fixture, which in turn embeds a 3rd and then a 4th fixture, a "stack overflow" error message will display when adding grammars to the test. You can click through the error and the test displays and saves just fine. Three embeds are required - the error does not occur if you embed 2 levels deep.
Here is an example set of fixtures:
public class StackOverflowFixture : Fixture
{
public StackOverflowFixture()
{
this["A"] = Embed("fix a");
}
[FormatAs("enter {input} for stack")]
public void TestStack(string input)
{
}
}
public class FixA : Fixture
{
public FixA()
{
this["B"] = Embed<FixB>("fix b");
}
[FormatAs("enter {input} for a")]
public void TestA(string input)
{
}
}
public class FixB : Fixture
{
public FixB()
{
this["C"] = Embed<FixC>("fix c");
}
[FormatAs("enter {input} for b")]
public void TestB(string input)
{
}
}
public class FixC : Fixture
{
[FormatAs("enter {input} for c")]
public void TestC(string input)
{
}
}
If you use a fixture that embeds another fixture, which in turn embeds a 3rd and then a 4th fixture, a "stack overflow" error message will display when adding grammars to the test. You can click through the error and the test displays and saves just fine. Three embeds are required - the error does not occur if you embed 2 levels deep.
Here is an example set of fixtures:
public class StackOverflowFixture : Fixture { public StackOverflowFixture() { this["A"] = Embed("fix a");
}
And an example test: