Пример #1
0
        public void Test___Method_GetValue___Generic()
        {
            var testee = new FuncVariable <string>()
            {
                Func = () => "foo"
            };

            Assert.AreEqual("foo", testee.GetValue <string>());
        }
Пример #2
0
        public void Test___Method_GetValue()
        {
            var testee = new FuncVariable()
            {
                Func = () => 10
            };

            Assert.AreEqual(10, testee.GetValue <int>());
        }