public void ToStringFromStringIsTreatedAsObject() {
     object obj = 3;
     var input = new RowsBuilder().Row("number", obj).ToOperation();
     var transform = new ToStringOperation("number", "string", "number", "C");
     var output = TestOperation(input, transform);
     Assert.AreEqual("$3.00", output[0]["number"]);
 }
 public void ToStringFromInt() {
     var input = new RowsBuilder().Row("number", 43).ToOperation();
     var transform = new ToStringOperation("number", "int32", "number", "C");
     var output = TestOperation(input, transform);
     Assert.AreEqual("$43.00", output[0]["number"]);
 }
        public void ToStringFromObject() {
            object obj = 3;
            object obj2 = 4;
            var input = new RowsBuilder()
                .Row("number", obj)
                .Row("number", obj2)
                .ToOperation();

            var transform = new ToStringOperation("number", "object", "number", "C");
            var output = TestOperation(input, transform);
            Assert.AreEqual("$3.00", output[0]["number"]);
            Assert.AreEqual("$4.00", output[1]["number"]);
        }
 public void ToStringFromDate() {
     var date = new DateTime(2013, 10, 30);
     var input = new RowsBuilder().Row("date", date).ToOperation();
     var transform = new ToStringOperation("date", "datetime", "date", "yyyy-MM-dd");
     var output = TestOperation(input, transform);
     Assert.AreEqual("2013-10-30", output[0]["date"]);
 }