예제 #1
0
		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;
		}
예제 #2
0
 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;
 }
예제 #3
0
		public void Parse(string input, int expectedSector, SectionArea expedtedMultiplier)
		{
			var t = ThrowResult.Parse(input);
			Assert.AreEqual(new ThrowResult(expectedSector, expedtedMultiplier), t);
		}
예제 #4
0
        public void Parse(string input, int expectedSector, SectionArea expedtedMultiplier)
        {
            var t = ThrowResult.Parse(input);

            Assert.AreEqual(new ThrowResult(expectedSector, expedtedMultiplier), t);
        }