Пример #1
0
        public void DotNetCategoryObjectsTest()
        {
            DotNetCategory category = new DotNetCategory();

            Type[] types = category.Objects.ToArray();
            EnumerableAssert.Multiple(types);
        }
Пример #2
0
        public void DotNetCategoryComposeTest()
        {
            DotNetCategory        category  = new DotNetCategory();
            Func <int, double>    function1 = int32 => Math.Sqrt(int32);
            Func <double, string> function2 = @double => @double.ToString("0.00");
            Delegate function = category.Compose(function2, function1);

            Assert.AreEqual("1.41", function.DynamicInvoke(2));
        }
Пример #3
0
        public void DotNetCategoryObjectsTest()
        {
            DotNetCategory category = new DotNetCategory();

            EnumerableAssert.Multiple(category.Objects);
        }