# EUnit Assert message can't have braces in it

**URL:** https://talk.remobjects.com/t/eunit-assert-message-cant-have-braces-in-it/17333
**Category:** EUnit
**Created:** [September 4, 2018, 6:31am UTC](https://talk.remobjects.com/t/eunit-assert-message-cant-have-braces-in-it/17333 "2018-09-04T06:31:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jnermut](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@jnermut](https://talk.remobjects.com/u/jnermut)
#### Post date: [September 4, 2018, 6:31am UTC](https://talk.remobjects.com/t/eunit-assert-message-cant-have-braces-in-it/17333/1 "2018-09-04T06:31:42Z")

</div>

Discovered this in converted unit tests for my JSON framework.

This, in an Echoes test project:

```
import RemObjects.Elements.EUnit

let lTests = Discovery.DiscoverTests()
Runner.RunTests(lTests, withListener: Runner.DefaultListener)

public class MyTests: Test
{
    public func AlwaysPass()
    {
        Assert.AreEqual(1, 2, "Some message with some json { 'hello': 'world' }")
    }
}

```

Gives:

```
MyTests started
!> Exception of type RemObjects.Elements.RTL.FormatException on thread 0001 ()
!> Message: Input string was not in a correct format

```

[TestApplication2.zip](https://talk.remobjects.com/uploads/default/original/2X/c/cded4283c4cfd5cc61b138b8a4a4578af413dae0.zip) (686.1 KB)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [September 4, 2018, 6:39am UTC](https://talk.remobjects.com/t/eunit-assert-message-cant-have-braces-in-it/17333/2 "2018-09-04T06:39:15Z")

</div>

Thanks, logged as bugs://80934

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [November 19, 2018, 1:40pm UTC](https://talk.remobjects.com/t/eunit-assert-message-cant-have-braces-in-it/17333/4 "2018-11-19T13:40:47Z")

</div>

bugs://80934 got closed with status fixed.
