예제 #1
0
		public void Compare_Type_test_with_Parse_Func()
		{
			var testClassWithType = new TestClassWithType { Type = typeof(string) };
			var testClassWithFunc = new TestClassWithFunc { GetValueFn = value => value };

			CompareMultipleRuns(
				"TestClassWithType", () => testClassWithType.GetValue("test"),
				"TestClassWithFunc", () => testClassWithFunc.GetValue("test")
			);
		}
        public void Compare_Type_test_with_Parse_Func()
        {
            var testClassWithType = new TestClassWithType {
                Type = typeof(string)
            };
            var testClassWithFunc = new TestClassWithFunc {
                GetValueFn = value => value
            };

            CompareMultipleRuns(
                "TestClassWithType", () => testClassWithType.GetValue("test"),
                "TestClassWithFunc", () => testClassWithFunc.GetValue("test")
                );
        }