コード例 #1
0
        public void DealWithIntArrayNullResponses()
        {
            var r = GenericPresentationHelpers.DisplayFunction(
                new Challenge <int[]>(new object[] { 1, "a" }, null),
                this.intAndString,
                typeof(int[]));

            r.Should().BeEquivalentTo("(1, \"a\") => null");
        }
コード例 #2
0
        public void DealWithStringArrayResponses()
        {
            var r = GenericPresentationHelpers.DisplayFunction(
                new Challenge <string[]>(new object[] { 1, "a" }, new[] { "a", "b" }),
                this.intAndString,
                typeof(string[]));

            r.Should().BeEquivalentTo("(1, \"a\") => [\"a\", \"b\"]");
        }
コード例 #3
0
        public void DealWithBasicExample()
        {
            var r = GenericPresentationHelpers.DisplayFunction(
                new Challenge <string>(new object[] { 1, "a" }, "hello"),
                this.intAndString,
                typeof(string));

            r.Should().BeEquivalentTo("(1, \"a\") => \"hello\"");
        }