def test_Validate_Invalid_Type(self):
     with self.assertRaises(TypeError) as e:
         NoteNumber.Validate('無効な型')
     self.assertIn('引数noteNumberはint型にしてください。', str(e.exception))
 def test_Validate_OutOfRange_128(self):
     with self.assertRaises(ValueError) as e:
         NoteNumber.Validate(128)
     self.assertIn(
         f'引数noteNumberは{NoteNumber.Min}〜{NoteNumber.Max}までの整数値にしてください。',
         str(e.exception))
 def test_Validate(self):
     for pitchClass in range(NoteNumber.Min, NoteNumber.Max + 1):
         NoteNumber.Validate(pitchClass)