Lines Matching refs:exception
165 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnUnclosedMultipleMultilineQuotedStrings()
166 Assert.AreEqual(ParsingError.SyntaxError, exception.Error); in ShouldFailOnUnclosedMultipleMultilineQuotedStrings()
167 …var position = exception.Message.Split(new string[] { Environment.NewLine }, StringSplitOptions.No… in ShouldFailOnUnclosedMultipleMultilineQuotedStrings()
187 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnUnclosedMultilineQuotedStringBetweenQuotedStrings()
188 Assert.AreEqual(ParsingError.SyntaxError, exception.Error); in ShouldFailOnUnclosedMultilineQuotedStringBetweenQuotedStrings()
189 …var position = exception.Message.Split(new string[] { Environment.NewLine }, StringSplitOptions.No… in ShouldFailOnUnclosedMultilineQuotedStringBetweenQuotedStrings()
241 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnMultilineQuotedStringInUsing()
242 Assert.AreEqual(ParsingError.SyntaxError, exception.Error); in ShouldFailOnMultilineQuotedStringInUsing()
279 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnAnyStringAfterClosedMultilineString()
280 Assert.AreEqual(ParsingError.SyntaxError, exception.Error); in ShouldFailOnAnyStringAfterClosedMultilineString()
281 …var position = exception.Message.Split(new string[] { Environment.NewLine }, StringSplitOptions.No… in ShouldFailOnAnyStringAfterClosedMultilineString()
293 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnMultipleMultilineStringSignsInOneLine()
294 Assert.AreEqual(ParsingError.SyntaxError, exception.Error); in ShouldFailOnMultipleMultilineStringSignsInOneLine()
295 …var position = exception.Message.Split(new string[] { Environment.NewLine }, StringSplitOptions.No… in ShouldFailOnMultipleMultilineStringSignsInOneLine()
320 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnUnclosedMultilineString()
321 Assert.AreEqual(ParsingError.SyntaxError, exception.Error); in ShouldFailOnUnclosedMultilineString()
322 …var position = exception.Message.Split(new string[] { Environment.NewLine }, StringSplitOptions.No… in ShouldFailOnUnclosedMultilineString()
483 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnEmptyKeywordAsType()
484 Assert.AreEqual(ParsingError.SyntaxError, exception.Error); in ShouldFailOnEmptyKeywordAsType()
493 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnEmptyKeywordAsRegistrationDestination()
494 Assert.AreEqual(ParsingError.SyntaxError, exception.Error); in ShouldFailOnEmptyKeywordAsRegistrationDestination()
503 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnEmptyKeywordAsParameterName()
504 Assert.AreEqual(ParsingError.SyntaxError, exception.Error); in ShouldFailOnEmptyKeywordAsParameterName()
511 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnEmptyKeywordAsUsingParameter()
512 Assert.AreEqual(ParsingError.SyntaxError, exception.Error); in ShouldFailOnEmptyKeywordAsUsingParameter()
690 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnUsingAlreadyRegisteredPeripheralsName()
691 Assert.AreEqual(ParsingError.VariableAlreadyDeclared, exception.Error); in ShouldFailOnUsingAlreadyRegisteredPeripheralsName()
818 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source, a)); in ShouldFailOnNotValidatedInit()
819 Assert.AreEqual(ParsingError.InitSectionValidationError, exception.Error); in ShouldFailOnNotValidatedInit()
840 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFindCyclicDependency()
841 Assert.AreEqual(ParsingError.CreationOrderCycle, exception.Error); in ShouldFindCyclicDependency()
851 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFindCyclicReferenceToItself()
852 Assert.AreEqual(ParsingError.CreationOrderCycle, exception.Error); in ShouldFindCyclicReferenceToItself()
872 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source, a)); in ShouldFindCyclicReferenceBetweenFiles()
873 Assert.AreEqual(ParsingError.CreationOrderCycle, exception.Error); in ShouldFindCyclicReferenceBetweenFiles()
915 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnNonExistingReferenceInCtorAttribute()
916 Assert.AreEqual(ParsingError.MissingReference, exception.Error); in ShouldFailOnNonExistingReferenceInCtorAttribute()
950 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldCatchExceptionOnEntryConstruction()
951 Assert.AreEqual(ParsingError.ConstructionException, exception.Error); in ShouldCatchExceptionOnEntryConstruction()
962 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldCatchExceptionOnObjectValueConstruction()
963 Assert.AreEqual(ParsingError.ConstructionException, exception.Error); in ShouldCatchExceptionOnObjectValueConstruction()
973 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldCatchExceptionOnPropertySetting()
974 Assert.AreEqual(ParsingError.PropertySettingException, exception.Error); in ShouldCatchExceptionOnPropertySetting()
986 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldCatchExceptionOnRegistration()
987 Assert.AreEqual(ParsingError.RegistrationException, exception.Error); in ShouldCatchExceptionOnRegistration()
998 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldHandleNameConflict()
999 Assert.AreEqual(ParsingError.NameSettingException, exception.Error); in ShouldHandleNameConflict()
1041 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnInvalidEnum()
1042 Assert.AreEqual(ParsingError.NoCtor, exception.Error); in ShouldFailOnInvalidEnum()
1064 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnInvalidIntToEnumCast()
1065 Assert.AreEqual(ParsingError.NoCtor, exception.Error); in ShouldFailOnInvalidIntToEnumCast()
1076 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnInvalidIntToEnumWithAttributeCast()
1077 Assert.AreEqual(ParsingError.NoCtor, exception.Error); in ShouldFailOnInvalidIntToEnumWithAttributeCast()
1100 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldFailOnAssignmentOfMachineTypeAttribute()
1101 Assert.AreEqual(ParsingError.NoCtor, exception.Error); in ShouldFailOnAssignmentOfMachineTypeAttribute()
1131 var exception = Assert.Throws<ParsingException>(() => ProcessSource(source)); in ShouldRejectPreviousIncompatibleRegistrationPoint()
1132 Assert.AreEqual(ParsingError.NoCtorForRegistrationPoint, exception.Error); in ShouldRejectPreviousIncompatibleRegistrationPoint()