public void Serializes() { var c = new Compiler.Compiler <TestClass>(); var serializer = c.CompileILSerialize(c.Compile((i) => { return(new Container(new Member((PropertyInfo)i))); })); var result = serializer(new TestClass { MyProperty = "testing 1, 2, 3" }); result .Should() .NotBeNull(); result.Length .Should() .Be(1); result[0] .Should() .Be("testing 1, 2, 3"); }