Example #1
0
        public async Task TestAwait()
        {
            var result1 = await SampleCode.Example1();

            var result2 = await SampleCode.Example2();

            result1.ShouldBe(false);
            result2.ShouldBe(true);
        }
Example #2
0
        public void TestWords(string value, string expected)
        {
            var result = SampleCode.ReverseWords(value);

            result.ShouldBe(expected);
        }
Example #3
0
        public void Test()
        {
            var result = SampleCode.Reverse("Abc");

            result.ShouldBe("cbA");
        }