Ejemplo n.º 1
0
            public void Its_ToString_includes_the_filename_if_set()
            {
                var ex = new ChutzpahCompilationFailedException("foo");

                ex.SourceFile = "test.coffee";
                Assert.Equal("test.coffee: foo", ex.ToString());
            }
Ejemplo n.º 2
0
            public void Its_ToString_returns_the_message_by_default()
            {
                var ex = new ChutzpahCompilationFailedException("foo");

                Assert.Equal("foo", ex.ToString());
            }