public static void TestOperationNegate() { JsonArray lim = new JsonArray().Add("a").Add("b").Add("c"); JsonObject obj = new JsonObject().Add("a", 4).Add("b", -5).Add("d", 12); JsonObject result = obj.Negate(); JsonObject limResult = obj.Negate(lim); result.Get<float>("a").ShouldBe(-4); result.Get<float>("b").ShouldBe(5); result.ContainsKey("d").ShouldBe(true); result.Get<float>("d").ShouldBe(-12); limResult.Get<float>("a").ShouldBe(-4); limResult.Get<float>("b").ShouldBe(5); limResult.ContainsKey("d").ShouldBe(false); limResult.Get<float>("d").ShouldBe(0); }