Beispiel #1
0
        public void WrapTest5()
        {
            FuncWrapper sut = Fun.Wrap((string s, int x, bool y, decimal z, char c) => String.Format(s + c, y ? x : z));

            sut.Should().NotBeNull();
            sut.Should().BeOfType <FuncWrapper>();
        }
Beispiel #2
0
        public void WrapTest3()
        {
            FuncWrapper sut = Fun.Wrap((string s, int x, bool y) => String.Format(s, y ? x : 0));

            sut.Should().NotBeNull();
            sut.Should().BeOfType <FuncWrapper>();
        }
Beispiel #3
0
        public void WrapTest2()
        {
            FuncWrapper sut = Fun.Wrap((string s, int x) => String.Format(s, x));

            sut.Should().NotBeNull();
            sut.Should().BeOfType <FuncWrapper>();
        }
Beispiel #4
0
        public void WrapTest1()
        {
            FuncWrapper sut = Fun.Wrap((int a) => a);

            sut.Should().NotBeNull();
            sut.Should().BeOfType <FuncWrapper>();
        }
Beispiel #5
0
        public void WrapTest(object x)
        {
            FuncWrapper sut = Fun.Wrap(() => x);

            sut.Should().NotBeNull();
            sut.Should().BeOfType <FuncWrapper>();
        }
Beispiel #6
0
        public void AsFunTest(object x)
        {
            FuncWrapper sut = x.AsFun();

            sut.Should().NotBeNull();
            sut.Should().BeOfType <FuncWrapper>();
        }