private static void AssertEquivalentLocals(FunctionBody first, FunctionBody second) { var firstCopy = new FunctionBody(first.Locals, first.BodyInstructions); var secondCopy = new FunctionBody(second.Locals, second.BodyInstructions); firstCopy.ExpandLocalEntries(); secondCopy.ExpandLocalEntries(); Assert.IsTrue(Enumerable.SequenceEqual <LocalEntry>(firstCopy.Locals, secondCopy.Locals)); }