Esempio n. 1
0
        public void Works_With_Complex_Nested_Method()
        {
            /* Setup */
            const string name = "World";

            /* Test */
            var greeting = LocalFunctions.GreetComplexNested(name);

            /* Assert */
            Assert.Equal(greeting, "Hello, World!");
        }
Esempio n. 2
0
        public async Task Work_With_Async_Await()
        {
            /* Setup */
            const string name = "World";

            /* Test */
            var greeting = await LocalFunctions.GreetAsync(name);

            /* Assert */
            Assert.Equal(greeting, "Hello, World!");
        }
Esempio n. 3
0
        public void Work_With_Yielded_Enumerable()
        {
            /* Setup */
            const string name = "World";

            /* Test */
            var greeting = LocalFunctions.YieldGreet(name);

            /* Assert */
            Assert.Equal(greeting, "Hello, World!");
        }
Esempio n. 4
0
        public void Works_For_String()
        {
            /* Setup */
            const string name = "World";

            /* Test */
            var greeting = LocalFunctions.Greet(name);

            /* Assert */
            Assert.Equal(greeting, "Hello, World!");
        }