Exemple #1
0
        public void TestObjectUpdateStringField()
        {
            // avoid warning with unused field
            StructWithString s;

            s.Field = "";

            var f = new ZenFunction <StructWithString, StructWithString>(o =>
                                                                         o.WithField <StructWithString, string>("Field", "hello"));

            var input = new StructWithString {
                Field = "hola"
            };
            var output = f.Evaluate(input);

            Assert.IsTrue(output.Field == "hello");
        }
 public static extern void CheckStructWithStructWithString(StructWithString s);