public void ParseLine_Should_Throw_Argument_Exception() { string input = "This is a string that is not in a valid format."; Assert.Throws <ArgumentException>(() => HappinessCalculator.ParseLine(input)); }
public void ParseLine_Should_Return_Tuple_With_Seating_Arrangement(string line, string expectedPerson, string expectedNextTo, int expectedHappiness) { ((string person, string nextTo), int happiness)seatingArrangement = HappinessCalculator.ParseLine(line); Assert.Equal(((expectedPerson, expectedNextTo), expectedHappiness), seatingArrangement); }