public async Task Passes_True <T>(IComparable one, IComparable two) { GenericComparisonRule rule = new GenericComparisonRule(one, two); var result = await rule.Passes(); Assert.True(result); }
public async Task Passes_TypeMismatch_ExceptionThrown <T>(IComparable one, IComparable two) { GenericComparisonRule rule = new GenericComparisonRule(one, two); await Assert.ThrowsAnyAsync <Exception>(async() => await rule.Passes()); }