Compile the snippets, then decompile them, and check if the code is functionally the same. (The decompiled C# code and recompiled IL code may be different, and the decompiler can only decompile IL to C#, not VB.NET nor F#.)
Use many different versions of the compiler, optimizations on or off.
This is so an entire XNA/FNA game can be recompiled while behaving identically.
Compile the snippets, then decompile them, and check if the code is functionally the same. (The decompiled C# code and recompiled IL code may be different, and the decompiler can only decompile IL to C#, not VB.NET nor F#.)
Use many different versions of the compiler, optimizations on or off.
This is so an entire XNA/FNA game can be recompiled while behaving identically.