Exemplo n.º 1
0
        public void Koan05_but_only_the_last_one_returns()
        {
            GetYourName chainedName = _bastien.GetName;

            chainedName += _emeric.GetName;

            chainedName().Should().Be("FILL_ME_IN");
        }
Exemplo n.º 2
0
        public void Koan02_delegate_can_be_assigned_to_object_method()
        {
            GetYourName myNameIsGet = AFFECT_ME();

            myNameIsGet().Should().Be("Bastien");
        }
Exemplo n.º 3
0
        public void Koan03_delegate_can_be_assigned_to_lambda()
        {
            GetYourName myNameIsGet = () => "Mathieu";

            myNameIsGet().Should().Be("FILL_ME_IN");
        }
Exemplo n.º 4
0
        public void Koan01_delegates_can_be_assigned_to_static_function()
        {
            GetYourName myNameIsGet = AFFECT_ME();

            myNameIsGet().Should().Be("Thomas");
        }