public void LeadingCandidateHandlesBadInput2() { try { var lc = new LeadingCandidate.LeadingCandidate(); var votes = new List <Tuple <char, DateTime> >(); lc.GetLeadingCandidateAtTime(votes, new DateTime(2019, 03, 20)); } catch (ArgumentException) { } }
public void LeadingCandidateFindsLeader() { var lc = new LeadingCandidate.LeadingCandidate(); var votes = new List <Tuple <char, DateTime> > { Tuple.Create('a', new DateTime(2019, 03, 19)) }; lc.GetLeadingCandidateAtTime(votes, new DateTime(2019, 03, 20)); }
public void LeadingCandidateHandlesBadInput() { var lc = new LeadingCandidate.LeadingCandidate(); try { lc.GetLeadingCandidateAtTime(null, new DateTime(2019, 03, 20)); throw new AssertFailedException(); } catch (ArgumentException) { } }