Esempio n. 1
0
        public void ToString_TextArgument_ReturnsExpected()
        {
            var function = new StartsWith();

            function.AddArgument(new HypnoGreen.Types.Text("denmark"));
            function.AddArgument(new HypnoGreen.Types.Text("den"));
            Assert.AreEqual("StartsWith(\"denmark\", \"den\")", function.ToString());
        }
        public void StartsWithCorrectlyConvertsToJson()
        {
            var sw = new StartsWith("closed");

            sw.ToString().ShouldEqual(StartsWithJson);
        }