public ThrowResult(int section, SectionArea sectionArea) { if (section < 0 || section > 20 && section != 25) throw new ArgumentException("Section should be in [0..20, 25] but was " + section); Section = section; SectionArea = sectionArea; }
public ThrowResult(int section, SectionArea sectionArea) { if (section < 0 || section > 20 && section != 25) { throw new ArgumentException("Section should be in [0..20, 25] but was " + section); } Section = section; SectionArea = sectionArea; }
public void Parse(string input, int expectedSector, SectionArea expedtedMultiplier) { var t = ThrowResult.Parse(input); Assert.AreEqual(new ThrowResult(expectedSector, expedtedMultiplier), t); }