/// <summary> ///Switch 的测试 ///</summary> public void SwitchTestHelper <TCase, TOther>() where TCase : IEquatable <T> { TCase t = default(TCase); Action <TOther> action = null; SwithCaseExtension.SwithCase <TCase, TOther> expected = null; SwithCaseExtension.SwithCase <TCase, TOther> actual; actual = SwithCaseExtension.Switch <TCase, TOther>(t, action); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///Switch 的测试 ///</summary> public void SwitchTest1Helper <TInput, TCase, TOther>() where TCase : IEquatable <T> { TInput t = default(TInput); Func <TInput, TCase> selector = null; Action <TOther> action = null; SwithCaseExtension.SwithCase <TCase, TOther> expected = null; SwithCaseExtension.SwithCase <TCase, TOther> actual; actual = SwithCaseExtension.Switch <TInput, TCase, TOther>(t, selector, action); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }