Exemplo n.º 1
0
        public void CanScriptToCode()
        {
            var instance = new SimpleObjectTestCase
            {
                Int1          = 1,
                Double1       = 2.3,
                String1       = "slim shady",
                Date1         = new DateTime(2012, 1, 2, 3, 4, 50),
                NullDate2     = null,
                NullableDate3 = new DateTime(2012, 2, 3, 4, 5, 50),
                Decimal1      = 1.23m,
            };

            var code = ITC.Instance.ToCode(instance);

            Approvals.Verify(code);
        }
Exemplo n.º 2
0
        public void CanScriptToCode()
        {
            var instance = new SimpleObjectTestCase
            {
                Int1 = 1,
                Double1 = 2.3,
                String1 = "slim shady",
                Date1 = new DateTime(2012, 1, 2, 3, 4, 50),
                NullDate2 = null,
                NullableDate3 = new DateTime(2012, 2, 3, 4, 5, 50),
                Decimal1 = 1.23m,
            };

            var code = ITC.Instance.ToCode(instance);

            Approvals.Verify(code);
        }