public void AssignEvaluation_AddProperty_AddArray_withNulls_ExpectSuccess()
        {
            //------------Setup for test--------------------------
            JObject j = new JObject();

            //------------Execute Test---------------------------
            var obj = WarewolfDataEvaluationCommon.addArrayPropertyToJson(j, "Name", new List <DataStorage.WarewolfAtom> {
                DataStorage.WarewolfAtom.Nothing, DataStorage.WarewolfAtom.NewDataString("b")
            });
            var result = obj.ToString();

            //------------Assert Results-------------------------
            Assert.AreEqual("{\r\n  \"Name\": [\r\n    null,\r\n    \"b\"\r\n  ]\r\n}", result);
        }
        public void AssignEvaluation_AddProperty_AddArray_Exists_ExpectSuccess()
        {
            //------------Setup for test--------------------------
            JObject j = new JObject();

            //------------Execute Test---------------------------
            // ReSharper disable once RedundantAssignment
            var obj = WarewolfDataEvaluationCommon.addArrayPropertyToJson(j, "Name", new List <DataStorage.WarewolfAtom> {
                DataStorage.WarewolfAtom.NewDataString("a"), DataStorage.WarewolfAtom.NewDataString("b")
            });

            obj = WarewolfDataEvaluationCommon.addArrayPropertyToJson(j, "Name", new List <DataStorage.WarewolfAtom> {
                DataStorage.WarewolfAtom.NewDataString("x"), DataStorage.WarewolfAtom.NewDataString("y")
            });
            var result = obj.ToString();

            //------------Assert Results-------------------------
            Assert.AreEqual("{\r\n  \"Name\": [\r\n    \"x\",\r\n    \"y\"\r\n  ]\r\n}", result);
        }