Given the following method:
[Custom]
public int Method()
{
return 3;
}
public class CustomAttribute : System.Attribute {}
if there is an edit to change the return statement to return 2, applying the updates from the EnC service leads to 2 [Custom] attributes on Method() during runtime.
Every successive edit adds another instance of the attribute to the CustomAttributes list.
This is an issue in testing because xunit only accepts 1 [Fact] attribute on a method and throws if multiple exist.
Given the following method:
if there is an edit to change the return statement to
return 2, applying the updates from the EnC service leads to 2[Custom]attributes onMethod()during runtime.Every successive edit adds another instance of the attribute to the CustomAttributes list.
This is an issue in testing because xunit only accepts 1
[Fact]attribute on a method and throws if multiple exist.