UnitTestScribe report - SrcML.NET

Methods
ABB.SrcML.Data.Test.BuiltInTypeFactoryTests.TestCppBuiltIns_WithDoubleWord()
ABB.SrcML.Data.Test.BuiltInTypeFactoryTests.TestCppBuiltIns_WithSingleWord()
ABB.SrcML.Data.Test.BuiltInTypeFactoryTests.TestJavaBuiltIns()
ABB.SrcML.Data.Test.CodeParserTests.TestField()
ABB.SrcML.Data.Test.CodeParserTests.TestField_Cpp()
ABB.SrcML.Data.Test.CodeParserTests.TestGetChildren_Expressions()
ABB.SrcML.Data.Test.CodeParserTests.TestGetChildren_Statements()
ABB.SrcML.Data.Test.CodeParserTests.TestMethodCallCreation()
ABB.SrcML.Data.Test.CodeParserTests.TestResolveLocalVariable()
ABB.SrcML.Data.Test.CodeParserTests.TestResolveLocalVariable_Parameter()
ABB.SrcML.Data.Test.CodeParserTests.TestResolveLocalVariable_ParentExpression()
ABB.SrcML.Data.Test.CodeParserTests.TestSimpleExpression()
ABB.SrcML.Data.Test.CodeParserTests.TestSubExpression()
ABB.SrcML.Data.Test.CodeParserTests.TestTwoVariableDeclarations()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestAlias_NameResolution_ImportType()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestAlias_NameResolution_TypeAlias()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestClassWithDeclaredVariable()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestConstructor_CallToSelf()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestConstructor_CallToSuperClass()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestConstructor_InitializeBuiltinTypeField()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestConstructor_InitializeField()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateAliasesForFiles_ImportClass()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateAliasesForFiles_ImportNamespace()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateAliasesForFiles_TypeAlias()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinition_ClassInNamespace()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinition_ClassWithMethodDeclaration()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinition_StaticMethod()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_Class()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_ClassDeclaration()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_ClassInFunction()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_ClassWithInnerClass()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_ClassWithParents()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_ClassWithQualifiedParent()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_InnerClassWithNamespace()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_Struct()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_Union()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestEmptyStatement()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestExternStatement_Block()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestExternStatement_Single()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestFreeStandingBlock()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGenericVariableDeclaration()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGenericVariableDeclarationWithPrefix()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGetAliases_NestedImportClass()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGetAliases_NestedTypeAlias()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGetImports()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGetImports_NestedImportNamespace()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestIfElse()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestIfElseIf()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestImport_NameResolution()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestLiteralUse()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMergeWithUsing()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallCreation_CallGlobalNamespace()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallCreation_GlobalFunction()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallCreation_LengthyCallingExpression()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallCreation_WithConflictingMethodNames()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallCreation_WithThisKeyword()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallFindMatches()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallFindMatches_WithArguments()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallMatchToParameter()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_DefaultArguments()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_FunctionPointerParameter()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_Parameters()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_ReturnType()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_ReturnTypeAndSpecifier()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_VoidParameter()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_VoidReturn()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveArrayVariable_Field()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveArrayVariable_Local()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveCallOnArrayVariable()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveVariable_Field()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveVariable_FieldInParent()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveVariable_Global()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveVariable_Masking()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveVariable_VarInNamespace()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestThreeVariableDeclarations()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestTwoVariableDeclarations()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestTypeUseForOtherNamespace()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestVariableDeclaredInCallingObjectWithParentClass()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestVariablesWithSpecifiers()
ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestVariableUse_Index()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestAlias_NameResolution()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallAsCallingObject()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallConstructor()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallingVariableDeclaredInParentClass()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallToGenericMethod()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallToGrandparent()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallWithTypeParameters()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestConstructorWithBaseKeyword()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestConstructorWithThisKeyword()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateAliasesForFiles_UsingAlias()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateAliasesForFiles_UsingNamespace()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_Class()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_ClassWithParent()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_ClassWithQualifiedParent()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_CompoundNamespace()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_Interface()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_Namespace()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_NestedCompoundNamespace()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_Struct()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinitions_ClassWithInnerClass()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinitions_InnerClassWithNamespace()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestDeclarationWithTypeVarFromConstructor()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestDeclarationWithTypeVarFromImplicitConstructor()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestDeclarationWithTypeVarFromMethod()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestDeclarationWithTypeVarInForeach()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestFieldCreation()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestFindParentType()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestFindQualifiedParentType()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGenericType()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGenericVariableDeclaration()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGenericVariableDeclarationWithPrefix()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForMethod_InternalProtected()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForMethod_None()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForMethod_Normal()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForMethod_ProtectedInternal()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForMethod_ProtectedInternalStatic()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForType_InternalProtected()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForType_None()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForType_Normal()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForType_ProtectedInternal()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForType_ProtectedInternalStatic()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAliases_NestedUsingAlias()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetImports()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetImports_NestedImportNamespace()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetImports_SeparateFiles()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestImport_NameResolution()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestLockStatement()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestMethodCallToParentOfCallingObject()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestMethodCallWithBaseKeyword()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestMethodDefinitionWithReturnType()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestMethodDefinitionWithReturnTypeAndWithSpecifier()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestMethodDefinitionWithVoidReturn()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestNamespace()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestProperty()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestPropertyAsCallingObject()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestResolveArrayVariable_Property()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestResolveVariable_Field()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestResolveVariable_FieldInParent()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestStaticInstanceVariable()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestStaticInstanceVariableInDifferentNamespace()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestStaticMethodCall()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestStaticMethodCallInDifferentNamespace()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestTypeUseForOtherNamespace()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestUsingBlock_Expression()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestUsingBlock_MultipleDecl()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestUsingBlock_SingleDecl()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestVariableDeclaredInCallingObjectWithParentClass()
ABB.SrcML.Data.Test.CSharpCodeParserTests.TestVariablesWithSpecifiers()
ABB.SrcML.Data.Test.DataFileNameMappingTests.TestDataFileNameMap()
ABB.SrcML.Data.Test.DataGeneratorTests.TestBadEncoding()
ABB.SrcML.Data.Test.DataGeneratorTests.TestMissingSrcMLFile()
ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestCppRemovalWithNamespaceAndClass()
ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestHeaderRemovalWithNamespaceAndClass()
ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveClassDefinition()
ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveMethodDeclaration_Global()
ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveMethodDefinition_Class()
ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveMethodDefinition_Global()
ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveMethodFromClass()
ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveMethodFromGlobal()
ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveNamespace()
ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemovePartOfNamespace()
ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestTestHelper()
ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestFileRemovalWithDifferentCase()
ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemoveClass_Global()
ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemoveNamespace()
ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemovePartialClass()
ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemovePartialMethod_Declaration()
ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemovePartialMethod_Implementation()
ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemovePartOfNamespace()
ABB.SrcML.Data.Test.FileRemovalTests_Java.TestRemoveClass_Global()
ABB.SrcML.Data.Test.FileRemovalTests_Java.TestRemoveClass_Namespace()
ABB.SrcML.Data.Test.FileRemovalTests_Java.TestRemoveNamespace()
ABB.SrcML.Data.Test.GetStatementTests.TestGlobalStatement()
ABB.SrcML.Data.Test.GetStatementTests.TestLocationInClass_CSharp()
ABB.SrcML.Data.Test.GetStatementTests.TestLocationInForLoop()
ABB.SrcML.Data.Test.GetStatementTests.TestLocationInMain_Cpp()
ABB.SrcML.Data.Test.GetStatementTests.TestLocationInMethodDefinition_Cpp()
ABB.SrcML.Data.Test.JavaCodeParserTests.BasicParentTest_Java()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestAlias_NameResolution()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateAliasesForFiles_ImportClass()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateAliasesForFiles_ImportNamespace()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinition_ClassInPackage()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_Class()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassInFunction()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassWithExtendsAndImplements()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassWithInnerClass()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassWithParents()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassWithQualifiedParent()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassWithSuperClass()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_InnerClassWithNamespace()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_Interface()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestFieldCreation()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForMethod_None()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForMethod_Normal()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForMethod_Static()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForType_None()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForType_Normal()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForType_Static()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestImport_NameResolution()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestMethodCallCreation_ConstructorFromOtherNamespace()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestMethodCallCreation_SuperConstructor()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestMethodCallCreation_WithConflictingMethodNames()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestMethodCallCreation_WithSuperKeyword()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestMethodCallCreation_WithThisKeyword()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestTypeUseForOtherNamespace()
ABB.SrcML.Data.Test.JavaCodeParserTests.TestVariablesWithSpecifiers()
ABB.SrcML.Data.Test.MergeTests.TestConstructorMerge_Cpp()
ABB.SrcML.Data.Test.MergeTests.TestCreateMethodDefinition_TwoUnresolvedParents()
ABB.SrcML.Data.Test.MergeTests.TestCreateMethodDefinition_TwoUnresolvedParentsWithPrototype()
ABB.SrcML.Data.Test.MergeTests.TestDestructorMerge_Cpp()
ABB.SrcML.Data.Test.MergeTests.TestMethodDefinitionMerge_Cpp()
ABB.SrcML.Data.Test.MergeTests.TestMethodDefinitionMerge_DifferentPrefixes()
ABB.SrcML.Data.Test.MergeTests.TestMethodDefinitionMerge_NoParameterName()
ABB.SrcML.Data.Test.MergeTests.TestMethodDefinitionMerge_NoParameters()
ABB.SrcML.Data.Test.MergeTests.TestNamespaceMerge_Cpp()
ABB.SrcML.Data.Test.MergeTests.TestNamespaceMerge_Java()
ABB.SrcML.Data.Test.MergeTests.TestNestedConstructorMerge_Cpp()
ABB.SrcML.Data.Test.MergeTests.TestPartialClassMerge_CSharp()
ABB.SrcML.Data.Test.MergeTests.TestPartialMethodMerge_CSharp()
ABB.SrcML.Data.Test.MergeTests.TestUnresolvedParentMerge_ClassEncounteredFirst_Cpp()
ABB.SrcML.Data.Test.MergeTests.TestUnresolvedParentMerge_MethodsEncounteredFirst_Cpp()
ABB.SrcML.Data.Test.MultithreadedAccessTests.TestQueryDuringUpdate()
ABB.SrcML.Data.Test.NameHelperTests.TestGetLastNameElement()
ABB.SrcML.Data.Test.NameHelperTests.TestGetLastNameElement_Null()
ABB.SrcML.Data.Test.NameHelperTests.TestGetNameElementsExceptLast()
ABB.SrcML.Data.Test.NameHelperTests.TestGetNameElementsExceptLast_Null()
ABB.SrcML.Data.Test.NameHelperTests.TestGetNestedNameElements()
ABB.SrcML.Data.Test.NameHelperTests.TestGetNestedNameElements_NoNestedNames()
ABB.SrcML.Data.Test.NameHelperTests.TestGetNestedNameElements_Null()
ABB.SrcML.Data.Test.ProgamElementTests.TestGetNamedChildren_IfStatement()
ABB.SrcML.Data.Test.ProgamElementTests.TestGetNamedChildren_Statement()
ABB.SrcML.Data.Test.ProgamElementTests.TestGetNamedChildren_TryStatement()
ABB.SrcML.Data.Test.ProgamElementTests.TestSiblingsAfterSelf()
ABB.SrcML.Data.Test.ProgamElementTests.TestSiblingsAfterSelf_MissingChild()
ABB.SrcML.Data.Test.ProgamElementTests.TestSiblingsBeforeSelf()
ABB.SrcML.Data.Test.ProgamElementTests.TestSiblingsBeforeSelf_MissingChild()
ABB.SrcML.Data.Test.QueryTests.TestFindMethodCalls_Nested()
ABB.SrcML.Data.Test.QueryTests.TestFindMethodCalls_Simple()
ABB.SrcML.Data.Test.QueryTests.TestFindScopeForAdjacentMethods()
ABB.SrcML.Data.Test.QueryTests.TestOverloadedMethodCallResolution()
ABB.SrcML.Data.Test.QueryTests.TestOverloadedMethodCallResolutionWithCallingObject()
ABB.SrcML.Data.Test.RealWorldTests.TestCompleteWorkingSet()
ABB.SrcML.Data.Test.RealWorldTests.TestCompleteWorkingSet_SingleCore()
ABB.SrcML.Data.Test.RealWorldTests.TestSerialization()
ABB.SrcML.Data.Test.SerializationTests.TestRoundTrip()
ABB.SrcML.Data.Test.SerializationTests.TestRoundTripWithDefaultExtension()
ABB.SrcML.Data.Test.SourceLocationTests.TestContains_DifferentLines()
ABB.SrcML.Data.Test.SourceLocationTests.TestContains_Overlapping()
ABB.SrcML.Data.Test.SourceLocationTests.TestContains_Point()
ABB.SrcML.Data.Test.SourceLocationTests.TestContains_SameLine()
ABB.SrcML.Data.Test.SrcMLLocationTests.TestContains_NoSibling()
ABB.SrcML.Data.Test.SrcMLLocationTests.TestContains_Reflexive()
ABB.SrcML.Data.Test.SrcMLLocationTests.TestContains_Sibling()
ABB.SrcML.Data.Test.SrcMLLocationTests.TestContains_TwoLevel()
ABB.SrcML.Data.Test.SrcMLLocationTests.TestGetXElement()
ABB.SrcML.Data.Test.StatementExtensionTests.TestGetCallsTo_Masking()
ABB.SrcML.Data.Test.StatementExtensionTests.TestGetCallsTo_Multiple()
ABB.SrcML.Data.Test.StatementExtensionTests.TestGetCallsTo_NonRecursive()
ABB.SrcML.Data.Test.StatementExtensionTests.TestGetCallsTo_Simple()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestAddDuplicateDirectory()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestAddSimilarDirectory()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestAddSubdirectory()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestEmptyMonitor()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestExcludedDirectory()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestExcludedFiles()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestFileChanges()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestFileSaveAndRestore()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestForbiddenDirectory()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestIsMonitoringFile()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestRemoveDirectory()
ABB.SrcML.Test.DirectoryScanningMonitorTests.TestStartup()
ABB.SrcML.Test.ExternalTests.DeclStmtWithTwoDecl()
ABB.SrcML.Test.ExternalTests.DestructorWithIfStatement()
ABB.SrcML.Test.ExternalTests.FileWithBom()
ABB.SrcML.Test.ExternalTests.FunctionWithElseInCpp()
ABB.SrcML.Test.ExternalTests.JavaClassWithConstructor()
ABB.SrcML.Test.ExternalTests.MacroWithoutSemicolon()
ABB.SrcML.Test.ExternalTests.MethodWithFunctionPointerAsParameter()
ABB.SrcML.Test.ExternalTests.TestCppConstTypeModifier()
ABB.SrcML.Test.ExternalTests.TestCppStaticTypeModifier()
ABB.SrcML.Test.ExternalTests.TestCSharpExpressionWithAdd()
ABB.SrcML.Test.ExternalTests.TestCSharpExpressionWithDefaultKeyword()
ABB.SrcML.Test.ExternalTests.TestCSharpExpressionWithGet()
ABB.SrcML.Test.ExternalTests.TestCSharpExpressionWithRemove()
ABB.SrcML.Test.ExternalTests.TestCSharpExpressionWithSet()
ABB.SrcML.Test.ExternalTests.TestCSharpUsingStatement()
ABB.SrcML.Test.HelperTests.GetXPathExtensionTest()
ABB.SrcML.Test.IConcurrencyStrategyTests.TestConservativeAbbCoreStrategy()
ABB.SrcML.Test.IConcurrencyStrategyTests.TestSingleCoreStrategy()
ABB.SrcML.Test.IConcurrencyStrategyTests.TestZeroCores()
ABB.SrcML.Test.LastModifiedArchiveTests.TestAddUpdateDelete()
ABB.SrcML.Test.LastModifiedArchiveTests.TestArchiveLoadRoundTrip()
ABB.SrcML.Test.LastModifiedArchiveTests.TestIsEmpty()
ABB.SrcML.Test.LastModifiedArchiveTests.TestOutdatedWithNonExistentFiles()
ABB.SrcML.Test.LastModifiedArchiveTests.TestRelativePathInsertWithFullPathCheck()
ABB.SrcML.Test.LastModifiedArchiveTests.TestRename()
ABB.SrcML.Test.LimitedConcurrencyLevelTaskSchedulerTests.TestDoubleTaskExecution()
ABB.SrcML.Test.LimitedConcurrencyLevelTaskSchedulerTests.TestSingleTaskExecution()
ABB.SrcML.Test.LimitedConcurrencyLevelTaskSchedulerTests.TestStartAndStop()
ABB.SrcML.Test.LimitedConcurrencyLevelTaskSchedulerTests.TestZeroTaskExecution()
ABB.SrcML.Test.ShortFileNameMappingTests.TestConcurrentAccess()
ABB.SrcML.Test.ShortFileNameMappingTests.TestConstructor_CurrentDirectory()
ABB.SrcML.Test.ShortFileNameMappingTests.TestDispose()
ABB.SrcML.Test.ShortFileNameMappingTests.TestFolderWithXmlNoMappingFile_NonSrcMLXml()
ABB.SrcML.Test.ShortFileNameMappingTests.TestGetSourcePath_FullPath()
ABB.SrcML.Test.ShortFileNameMappingTests.TestGetSourcePath_JustFileName()
ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_CorrectDir()
ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_DifferentCase()
ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_DuplicatesInMapFile()
ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_NonExistentDir()
ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_Repeated()
ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_SameName()
ABB.SrcML.Test.ShortFileNameMappingTests.TestMappingFile()
ABB.SrcML.Test.ShortFileNameMappingTests.TestRountrip()
ABB.SrcML.Test.ShortFileNameMappingTests.TestSaveMapping()
ABB.SrcML.Test.ShortFileNameMappingTests.TestSrcMLWithNoMappingFile()
ABB.SrcML.Test.ShortFileNameMappingTests.TestXmlPathWithDifferentCase()
ABB.SrcML.Test.SolutionMonitorTest.FileAddDeleteChangeRenameTest()
ABB.SrcML.Test.SolutionMonitorTest.GenerateXmlAndStringForSourceTest()
ABB.SrcML.Test.SolutionMonitorTest.GenerateXmlAndXElementForSourceTest()
ABB.SrcML.Test.SolutionMonitorTest.GenerateXmlForDirectoryTest()
ABB.SrcML.Test.SolutionMonitorTest.GenerateXmlForSourceTest()
ABB.SrcML.Test.Src2SrcMLRunnerTests.DifferentLanguageTest()
ABB.SrcML.Test.Src2SrcMLRunnerTests.EmptyOutputFileTest()
ABB.SrcML.Test.Src2SrcMLRunnerTests.ExclusionFilterTest()
ABB.SrcML.Test.Src2SrcMLRunnerTests.InputWithSpacesTest()
ABB.SrcML.Test.Src2SrcMLRunnerTests.InvalidLanguageTest()
ABB.SrcML.Test.Src2SrcMLRunnerTests.MultipleFilesTest()
ABB.SrcML.Test.Src2SrcMLRunnerTests.MultipleFilesTest_DifferentDirectories()
ABB.SrcML.Test.Src2SrcMLRunnerTests.MultipleFilesTest_Language()
ABB.SrcML.Test.Src2SrcMLRunnerTests.MyTestMethod()
ABB.SrcML.Test.Src2SrcMLRunnerTests.SingleFileTest()
ABB.SrcML.Test.Src2SrcMLRunnerTests.SingleFileToFileAndStringTest()
ABB.SrcML.Test.Src2SrcMLRunnerTests.SingleFileToFileAndXElementTest()
ABB.SrcML.Test.Src2SrcMLRunnerTests.SrcMLFromStringTest()
ABB.SrcML.Test.SrcDiffFilterTests.TestAddConditionBlock()
ABB.SrcML.Test.SrcDiffFilterTests.TestRemoveConditionBlock()
ABB.SrcML.Test.SrcDiffFilterTests.TestRenameFunction()
ABB.SrcML.Test.SrcDiffFilterTests.TestSplitFunction()
ABB.SrcML.Test.SrcMLArchiveTests.GenerateXmlForDirectoryTest()
ABB.SrcML.Test.SrcMLArchiveTests.TestDontUseExistingSrcML()
ABB.SrcML.Test.SrcMLArchiveTests.TestEmptyArchive()
ABB.SrcML.Test.SrcMLElementTests.TestGetLanguageForUnit_InvalidArgument()
ABB.SrcML.Test.SrcMLElementTests.TestGetLanguageForUnit_InvalidLanguage()
ABB.SrcML.Test.SrcMLElementTests.TestGetLanguageForUnit_NoLanguage()
ABB.SrcML.Test.SrcMLElementTests.TestGetLanguageForUnit_ValidLanguage()
ABB.SrcML.Test.SrcMLElementTests.TestGetMethodSignature_InitializerList()
ABB.SrcML.Test.SrcMLElementTests.TestGetMethodSignature_Normal()
ABB.SrcML.Test.SrcMLElementTests.TestGetMethodSignature_Whitespace()
ABB.SrcML.Test.SrcMLFileTest.CompoundFileTest()
ABB.SrcML.Test.SrcMLFileTest.DisjunctMergedFileTest()
ABB.SrcML.Test.SrcMLFileTest.EmptyElementTest()
ABB.SrcML.Test.SrcMLFileTest.ExtraNewlinesInMergedDocumentTest()
ABB.SrcML.Test.SrcMLFileTest.SingleFileTest()
ABB.SrcML.Test.SrcMLFileTest.WhitespaceInCompoundDocumentTest()
ABB.SrcML.Test.SrcMLFileTest.WhitespaceInSingleDocumentTest()
ABB.SrcML.Test.SrcMLGeneratorTests.DifferentLanguageTest()
ABB.SrcML.Test.SrcMLGeneratorTests.EmptyOutputFileTest()
ABB.SrcML.Test.SrcMLGeneratorTests.ExclusionFilterTest()
ABB.SrcML.Test.SrcMLGeneratorTests.InputWithSpacesTest()
ABB.SrcML.Test.SrcMLGeneratorTests.InvalidLanguageTest()
ABB.SrcML.Test.SrcMLGeneratorTests.MultipleFilesTest()
ABB.SrcML.Test.SrcMLGeneratorTests.MultipleFilesTest_DifferentDirectories()
ABB.SrcML.Test.SrcMLGeneratorTests.MultipleFilesTest_Language()
ABB.SrcML.Test.SrcMLGeneratorTests.SingleFileTest()
ABB.SrcML.Test.SrcMLGeneratorTests.SrcMLFromStringTest()
ABB.SrcML.Test.SrcMLGeneratorTests.TestGenerateSrcMLFromFile_NonDefaultExtension()
ABB.SrcML.Test.SrcMLGeneratorTests.TestGenerateSrcMLFromFiles_NonDefaultExtension()
ABB.SrcML.Test.SrcMLGeneratorTests.TestStrangeEncodings()
ABB.SrcML.Test.SRCTest.CheckPositionNumberWithSingleUnit()
ABB.SrcML.Test.SRCTest.ContainsCallToTest()
ABB.SrcML.Test.SRCTest.GetLineInfoWithString()
ABB.SrcML.Test.SRCTest.GetSrcLineNumberWithMultipleUnit()
ABB.SrcML.Test.SRCTest.GetSrcLineNumberWithSingleUnit()
ABB.SrcML.Test.SRCTest.ParentStatementTest()
ABB.SrcML.Test.SRCTest.ToSourceTest()
ABB.SrcML.Test.TransformHarnessTest.InvalidQueryFunctionTest()
ABB.SrcML.Test.TransformHarnessTest.NonTransformTypeTest()
ABB.SrcML.Test.TransformHarnessTest.NoQueriesTest()
ABB.SrcML.Test.TransformHarnessTest.NullTransformTypeTest()
ABB.SrcML.Test.TransformHarnessTest.QueryCreationWithoutDefaultConstructorTest()
ABB.SrcML.Test.TransformHarnessTest.QueryFunctionWithBadSignature()
ABB.SrcML.Test.TransformHarnessTest.QueryFunctionWithMissingMethod()
ABB.SrcML.Test.TransformHarnessTest.QueryFunctionWithNullMethod()
ABB.SrcML.Test.TransformHarnessTest.QueryFunctionWithNullType()
ABB.SrcML.Test.TransformHarnessTest.StaticQueryCreationWithoutDefaultConstructorTest()
ABB.SrcML.Test.TransformHarnessTest.TransformWithoutDefaultConstructor()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestCursorMonitoring()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestDataServiceStartup()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestMethodTrackingsOnCursorMoving()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestMethodTrackingsOnFileChange()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestMethodTrackingsOnFileDelete()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestMtServiceStartup()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestNavHistoryListInMethodTracking()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCPlusPlusTests.TestCppFileOperations()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCPlusPlusTests.TestCppProjectOperations()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCPlusPlusTests.TestCppServiceStartup()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCSharpTests.TestCsFileOperations()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCSharpTests.TestCsProjectOperations()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCSharpTests.TestCsServiceStartup()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServicePackageIntegrationTests.FileLevelIncrementalUpdateTest()
ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServicePackageIntegrationTests.ProjectLevelIncrementalUpdateTest()
ABB.SrcML.VisualStudio.SrcMLService.UnitTests.MenuItemTests.MenuItemTest.InitializeMenuCommand()
ABB.SrcML.VisualStudio.SrcMLService.UnitTests.MenuItemTests.MenuItemTest.MenuItemCallback()
ABB.SrcML.VisualStudio.SrcMLService.UnitTests.SrcMLServicePackageTests.CreateInstance()
ABB.SrcML.VisualStudio.SrcMLService.UnitTests.SrcMLServicePackageTests.GetGlobalServiceSimple()
ABB.SrcML.VisualStudio.SrcMLService.UnitTests.SrcMLServicePackageTests.IsIVsPackage()
ABB.SrcML.VisualStudio.SrcMLService.UnitTests.SrcMLServicePackageTests.SetSite()
ABB.SrcML.VisualStudio.SrcMLService.UnitTests.SrcMLServicePackageTests.SetSiteSimple()
1.  ABB.SrcML.Data.Test.BuiltInTypeFactoryTests.TestCppBuiltIns_WithDoubleWord

Code with line numbers

This unit test case method tests cpp built ins with double word.

This unit test case validates that:
(1) variableA.Name is equal to "a".
   variableA is obtained from
   1) variable xmlFormat through slicing path
   2) variable builtInModifier through slicing path
   3) variable builtIn through slicing path.

(2) variableB.Name is equal to "b".
   variableB is obtained from
   1) variable xmlFormat through slicing path
   2) variable builtInModifier through slicing path
   3) variable builtIn through slicing path.

(3) variableA.VariableType.Name is equal to String.Format("{0} {1}",builtInModifier,builtIn).
   variableA is obtained from
   1) variable xmlFormat through slicing path
   2) variable builtInModifier through slicing path
   3) variable builtIn through slicing path.

(4) typeOfB and typeOfA are same.
   typeOfB is obtained from
   1) variable xmlFormat through slicing path
   2) variable builtInModifier through slicing path
   3) variable builtIn through slicing path.

2.  ABB.SrcML.Data.Test.BuiltInTypeFactoryTests.TestCppBuiltIns_WithSingleWord

Code with line numbers

This unit test case method tests cpp built ins with single word.

This unit test case validates that:
(1) variableA.Name is equal to "a".
   variableA is obtained from
   1) variable xmlFormat through slicing path
   2) variable builtIn through slicing path.

(2) variableB.Name is equal to "b".
   variableB is obtained from
   1) variable xmlFormat through slicing path
   2) variable builtIn through slicing path.

(3) variableA.VariableType.Name is equal to builtIn.
   variableA is obtained from
   1) variable xmlFormat through slicing path
   2) variable builtIn through slicing path.

(4) typeOfB and typeOfA are same.
   typeOfB is obtained from
   1) variable xmlFormat through slicing path
   2) variable builtIn through slicing path.

3.  ABB.SrcML.Data.Test.BuiltInTypeFactoryTests.TestJavaBuiltIns

Code with line numbers

This unit test case method tests java built ins .

This unit test case validates that:
(1) variableA.VariableType.Name is equal to builtIn.
   variableA is obtained from
   1) variable xmlFormat through slicing path
   2) variable builtIn through slicing path.

(2) typeOfB and typeOfA are same.
   typeOfB is obtained from
   1) variable xmlFormat through slicing path
   2) variable builtIn through slicing path.

4.  ABB.SrcML.Data.Test.CodeParserTests.TestTwoVariableDeclarations

Code with line numbers

This unit test case method tests two variable declarations .

This unit test case validates that:
(1) varDecls.Count is equal to 2.
   varDecls is obtained from
   1) variable testXml through slicing path.

(2) varDecls[0].Name is equal to "a".
   varDecls is obtained from
   1) variable testXml through slicing path.

(3) varDecls[0].VariableType.Name is equal to "int".
   varDecls is obtained from
   1) variable testXml through slicing path.

(4) varDecls[1].Name is equal to "b".
   varDecls is obtained from
   1) variable testXml through slicing path.

(5) varDecls[1].VariableType and varDecls[0].VariableType are same.
   varDecls is obtained from
   1) variable testXml through slicing path.

5.  ABB.SrcML.Data.Test.CodeParserTests.TestField

Code with line numbers

This unit test case method tests field .

This unit test case validates that:
(1) declStmts.Count is equal to 2.
   declStmts is obtained from
   1) variable xml through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(3) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable xml through slicing path.

(4) foo.VariableType.Name is equal to "int".
   foo is obtained from
   1) variable xml through slicing path.

(5) foo.Accessibility is equal to AccessModifier.None.
   foo is obtained from
   1) variable xml through slicing path.

(6) baz is not null.
   baz is obtained from
   1) variable xml through slicing path.

(7) baz.Name is equal to "baz".
   baz is obtained from
   1) variable xml through slicing path.

(8) baz.VariableType.Name is equal to "Bar".
   baz is obtained from
   1) variable xml through slicing path.

(9) baz.Accessibility is equal to AccessModifier.None.
   baz is obtained from
   1) variable xml through slicing path.

6.  ABB.SrcML.Data.Test.CodeParserTests.TestField_Cpp

Code with line numbers

This unit test case method tests field cpp .

This unit test case validates that:
(1) declStmts.Count is equal to 2.
   declStmts is obtained from
   1) variable xml through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(3) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable xml through slicing path.

(4) foo.VariableType.Name is equal to "int".
   foo is obtained from
   1) variable xml through slicing path.

(5) foo.Accessibility is equal to AccessModifier.None.
   foo is obtained from
   1) variable xml through slicing path.

(6) baz is not null.
   baz is obtained from
   1) variable xml through slicing path.

(7) baz.Name is equal to "baz".
   baz is obtained from
   1) variable xml through slicing path.

(8) baz.VariableType.Name is equal to "Bar".
   baz is obtained from
   1) variable xml through slicing path.

(9) baz.Accessibility is equal to AccessModifier.None.
   baz is obtained from
   1) variable xml through slicing path.

7.  ABB.SrcML.Data.Test.CodeParserTests.TestMethodCallCreation

Code with line numbers

This unit test case method tests method call creation .

This unit test case validates that:
(1) executeMethod is not null.
   executeMethod is obtained from
   1) variable xml through slicing path.

(2) callToNewB is not null.
   callToNewB is obtained from
   1) variable xml through slicing path.

(3) callToNewB.Name is equal to "B".
   callToNewB is obtained from
   1) variable xml through slicing path.

(4) callToNewB.IsConstructor is true.
   callToNewB is obtained from
   1) variable xml through slicing path.

(5) callToNewB.IsDestructor is false.
   callToNewB is obtained from
   1) variable xml through slicing path.

(6) forStatement is not null.
   forStatement is obtained from
   1) variable xml through slicing path.

(7) callToMax is not null.
   callToMax is obtained from
   1) variable xml through slicing path.

(8) callToMax.Name is equal to "max".
   callToMax is obtained from
   1) variable xml through slicing path.

(9) callToMax.IsDestructor is false.
   callToMax is obtained from
   1) variable xml through slicing path.

(10) callToMax.IsConstructor is false.
   callToMax is obtained from
   1) variable xml through slicing path.

(11) tryStatement is not null.
   tryStatement is obtained from
   1) variable xml through slicing path.

(12) callToPrintOutput is not null.
   callToPrintOutput is obtained from
   1) variable xml through slicing path.

(13) callToPrintOutput.Name is equal to "PrintOutput".
   callToPrintOutput is obtained from
   1) variable xml through slicing path.

(14) callToPrintOutput.IsDestructor is false.
   callToPrintOutput is obtained from
   1) variable xml through slicing path.

(15) callToPrintOutput.IsConstructor is false.
   callToPrintOutput is obtained from
   1) variable xml through slicing path.

(16) callToAnalyze is not null.
   callToAnalyze is obtained from
   1) variable xml through slicing path.

(17) callToAnalyze.Name is equal to "analyze".
   callToAnalyze is obtained from
   1) variable xml through slicing path.

(18) callToAnalyze.IsDestructor is false.
   callToAnalyze is obtained from
   1) variable xml through slicing path.

(19) callToAnalyze.IsConstructor is false.
   callToAnalyze is obtained from
   1) variable xml through slicing path.

(20) catchStatement is not null.
   catchStatement is obtained from
   1) variable xml through slicing path.

(21) callToPrintError is not null.
   callToPrintError is obtained from
   1) variable xml through slicing path.

(22) callToPrintError.Name is equal to "PrintError".
   callToPrintError is obtained from
   1) variable xml through slicing path.

(23) callToPrintError.IsDestructor is false.
   callToPrintError is obtained from
   1) variable xml through slicing path.

(24) callToPrintError.IsConstructor is false.
   callToPrintError is obtained from
   1) variable xml through slicing path.

(25) callToToString is not null.
   callToToString is obtained from
   1) variable xml through slicing path.

(26) callToToString.Name is equal to "ToString".
   callToToString is obtained from
   1) variable xml through slicing path.

(27) callToToString.IsDestructor is false.
   callToToString is obtained from
   1) variable xml through slicing path.

(28) callToToString.IsConstructor is false.
   callToToString is obtained from
   1) variable xml through slicing path.

8.  ABB.SrcML.Data.Test.CodeParserTests.TestSimpleExpression

Code with line numbers

This unit test case method tests simple expression .

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) exp is not null.
   exp is obtained from
   1) variable xml through slicing path.

(3) exp.Components.Count is equal to 5.
   exp is obtained from
   1) variable xml through slicing path.

(4) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(5) foo.Name is equal to "foo".
   foo is obtained from
   1) variable xml through slicing path.

(6) equals is not null.
   equals is obtained from
   1) variable xml through slicing path.

(7) equals.Text is equal to "=".
   equals is obtained from
   1) variable xml through slicing path.

(8) two is not null.
   two is obtained from
   1) variable xml through slicing path.

(9) two.Text is equal to "2".
   two is obtained from
   1) variable xml through slicing path.

(10) plus is not null.
   plus is obtained from
   1) variable xml through slicing path.

(11) plus.Text is equal to "+".
   plus is obtained from
   1) variable xml through slicing path.

(12) three is not null.
   three is obtained from
   1) variable xml through slicing path.

(13) three.Text is equal to "3".
   three is obtained from
   1) variable xml through slicing path.

9.  ABB.SrcML.Data.Test.CodeParserTests.TestSubExpression

Code with line numbers

This unit test case method tests sub expression .

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) exp is not null.
   exp is obtained from
   1) variable xml through slicing path.

(3) exp.Components.Count is equal to 5.
   exp is obtained from
   1) variable xml through slicing path.

(4) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(5) foo.Name is equal to "foo".
   foo is obtained from
   1) variable xml through slicing path.

(6) equals is not null.
   equals is obtained from
   1) variable xml through slicing path.

(7) equals.Text is equal to "=".
   equals is obtained from
   1) variable xml through slicing path.

(8) subExp.GetType() is equal to typeof(Expression).
   subExp is obtained from
   1) variable xml through slicing path.

(9) subExp.Components.Count is equal to 3.
   subExp is obtained from
   1) variable xml through slicing path.

(10) two is not null.
   two is obtained from
   1) variable xml through slicing path.

(11) two.Text is equal to "2".
   two is obtained from
   1) variable xml through slicing path.

(12) plus is not null.
   plus is obtained from
   1) variable xml through slicing path.

(13) plus.Text is equal to "+".
   plus is obtained from
   1) variable xml through slicing path.

(14) three is not null.
   three is obtained from
   1) variable xml through slicing path.

(15) three.Text is equal to "3".
   three is obtained from
   1) variable xml through slicing path.

(16) times is not null.
   times is obtained from
   1) variable xml through slicing path.

(17) times.Text is equal to "*".
   times is obtained from
   1) variable xml through slicing path.

(18) five is not null.
   five is obtained from
   1) variable xml through slicing path.

(19) five.Text is equal to "5".
   five is obtained from
   1) variable xml through slicing path.

10.  ABB.SrcML.Data.Test.CodeParserTests.TestGetChildren_Statements

Code with line numbers

This unit test case method tests get children statements .

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) globalScope.GetDescendantsAndSelf().Count() is equal to 4.
   globalScope is obtained from
   1) variable xml through slicing path.

11.  ABB.SrcML.Data.Test.CodeParserTests.TestGetChildren_Expressions

Code with line numbers

This unit test case method tests get children expressions .

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) globalScope.ChildStatements[0].Content.GetDescendantsAndSelf().Count() is equal to 3.
   globalScope is obtained from
   1) variable xml through slicing path.

12.  ABB.SrcML.Data.Test.CodeParserTests.TestResolveLocalVariable

Code with line numbers

This unit test case method tests resolve local variable .

This unit test case validates that:
(1) ifStmt.ChildStatements.Count() is equal to 2.
   ifStmt is obtained from
   1) variable xml through slicing path.

(2) barDecl is not null.
   barDecl is obtained from
   1) variable xml through slicing path.

(3) barUse is not null.
   barUse is obtained from
   1) variable xml through slicing path.

(4) barUse.FindMatches().FirstOrDefault() and barDecl are same.
   barUse is obtained from
   1) variable xml through slicing path.

13.  ABB.SrcML.Data.Test.CodeParserTests.TestResolveLocalVariable_ParentExpression

Code with line numbers

This unit test case method tests resolve local variable parent expression .

This unit test case validates that:
(1) forStmt.ChildStatements.Count() is equal to 1.
   forStmt is obtained from
   1) variable xml through slicing path.

(2) iDecl is not null.
   iDecl is obtained from
   1) variable xml through slicing path.

(3) iUse is not null.
   iUse is obtained from
   1) variable xml through slicing path.

(4) iUse.FindMatches().FirstOrDefault() and iDecl are same.
   iUse is obtained from
   1) variable xml through slicing path.

14.  ABB.SrcML.Data.Test.CodeParserTests.TestResolveLocalVariable_Parameter

Code with line numbers

This unit test case method tests resolve local variable parameter .

This unit test case validates that:
(1) foo.Parameters.Count is equal to 2.
   foo is obtained from
   1) variable xml through slicing path.

(2) numDecl is not null.
   numDecl is obtained from
   1) variable xml through slicing path.

(3) optionDecl is not null.
   optionDecl is obtained from
   1) variable xml through slicing path.

(4) optionUse is not null.
   optionUse is obtained from
   1) variable xml through slicing path.

(5) optionUse.FindMatches().FirstOrDefault() and optionDecl are same.
   optionUse is obtained from
   1) variable xml through slicing path.

(6) numUse is not null.
   numUse is obtained from
   1) variable xml through slicing path.

(7) numUse.FindMatches().FirstOrDefault() and numDecl are same.
   numUse is obtained from
   1) variable xml through slicing path.

15.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_Class

Code with line numbers

This unit test case method tests create type definitions class .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 39)
This focal method is related to assertions at line 42, line 43, line 44, line 45, line 46

This unit test case validates that:
(1) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(2) actual.Name is equal to "A".
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.Kind is equal to TypeKind.Class.
   actual is obtained from
   1) variable xml through slicing path.

(4) globalScope.IsGlobal is true.
   globalScope is obtained from
   1) variable xml through slicing path.

(5) actual.ParentStatement and globalScope are same.
   actual is obtained from
   1) variable xml through slicing path.

16.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_ClassDeclaration

Code with line numbers

This unit test case method tests create type definitions class declaration .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 55)
This focal method is related to assertions at line 58, line 59, line 60, line 61, line 62

This unit test case validates that:
(1) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(2) actual.Name is equal to "A".
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.Kind is equal to TypeKind.Class.
   actual is obtained from
   1) variable xml through slicing path.

(4) globalScope.IsGlobal is true.
   globalScope is obtained from
   1) variable xml through slicing path.

(5) actual.ParentStatement and globalScope are same.
   actual is obtained from
   1) variable xml through slicing path.

17.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestClassWithDeclaredVariable

Code with line numbers

This unit test case method tests class with declared variable.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(fileSetup.GetFileUnitForXmlSnippet(xml,"A.h"));(@line 74)
This focal method is related to assertions at line 75, line 78, line 79, line 80, line 83, line 85, line 86, line 87

This unit test case validates that:
(1) globalScope.IsGlobal is true.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) classA is not null.
   classA is obtained from
   1) variable xml through slicing path.

(3) classA.Name is equal to "A".
   classA is obtained from
   1) variable xml through slicing path.

(4) classA.ChildStatements.Count is equal to 1.
   classA is obtained from
   1) variable xml through slicing path.

(5) fieldStmt is not null.
   fieldStmt is obtained from
   1) variable xml through slicing path.

(6) field is not null.
   field is obtained from
   1) variable xml through slicing path.

(7) field.Name is equal to "a".
   field is obtained from
   1) variable xml through slicing path.

(8) field.VariableType.Name is equal to "int".
   field is obtained from
   1) variable xml through slicing path.

18.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestFreeStandingBlock

Code with line numbers

This unit test case method tests free standing block .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 104)
This focal method is related to assertions at line 107, line 110, line 111, line 112, line 113

This unit test case validates that:
(1) firstChild is a instance of BlockStatement.
   firstChild is obtained from
   1) variable xml through slicing path.

(2) actual.Content is null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.ChildStatements.Count is equal to 2.
   actual is obtained from
   1) variable xml through slicing path.

(4) globalScope.IsGlobal is true.
   globalScope is obtained from
   1) variable xml through slicing path.

(5) actual.ParentStatement and globalScope are same.
   actual is obtained from
   1) variable xml through slicing path.

19.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestExternStatement_Single

Code with line numbers

This unit test case method tests extern statement single .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 122)
This focal method is related to assertions at line 125, line 126, line 127

This unit test case validates that:
(1) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(2) actual.LinkageType is equal to "\"C\"".
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.ChildStatements.Count is equal to 1.
   actual is obtained from
   1) variable xml through slicing path.

20.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestExternStatement_Block

Code with line numbers

This unit test case method tests extern statement block .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 143)
This focal method is related to assertions at line 146, line 147, line 148

This unit test case validates that:
(1) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(2) actual.LinkageType is equal to "\"C\"".
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.ChildStatements.Count is equal to 2.
   actual is obtained from
   1) variable xml through slicing path.

21.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestConstructor_CallToSelf

Code with line numbers

This unit test case method tests constructor call to self.

This unit test case includes following focal methods:
(1) var constructors = globalScope.GetDescendants().ToList();(@line 168)
This focal method is related to assertions at line 172, line 173, line 174, line 177, line 178, line 179, line 180

This unit test case validates that:
(1) defaultConstructor is not null.
   defaultConstructor is obtained from
   1) variable xml through slicing path.

(2) calledConstructor is not null.
   calledConstructor is obtained from
   1) variable xml through slicing path.

(3) defaultConstructor.ConstructorInitializers.Count is equal to 1.
   defaultConstructor is obtained from
   1) variable xml through slicing path.

(4) constructorCall is not null.
   constructorCall is obtained from
   1) variable xml through slicing path.

(5) constructorCall.IsConstructor is true.
   constructorCall is obtained from
   1) variable xml through slicing path.

(6) constructorCall.IsConstructorInitializer is true.
   constructorCall is obtained from
   1) variable xml through slicing path.

(7) constructorCall.FindMatches().FirstOrDefault() and calledConstructor are same.
   constructorCall is obtained from
   1) variable xml through slicing path.

22.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestConstructor_CallToSuperClass

Code with line numbers

This unit test case method tests constructor call to super class.

This unit test case includes following focal methods:
(1) var subClassConstructor = globalScope.GetDescendants().First();(@line 202)
This focal method is related to assertions at line 203, line 204, line 205, line 208, line 209, line 210, line 211

This unit test case validates that:
(1) subClassConstructor is not null.
   subClassConstructor is obtained from
   1) variable xml through slicing path.

(2) calledConstructor is not null.
   calledConstructor is obtained from
   1) variable xml through slicing path.

(3) subClassConstructor.ConstructorInitializers.Count is equal to 1.
   subClassConstructor is obtained from
   1) variable xml through slicing path.

(4) constructorCall is not null.
   constructorCall is obtained from
   1) variable xml through slicing path.

(5) constructorCall.IsConstructor is true.
   constructorCall is obtained from
   1) variable xml through slicing path.

(6) constructorCall.IsConstructorInitializer is true.
   constructorCall is obtained from
   1) variable xml through slicing path.

(7) constructorCall.FindMatches().FirstOrDefault() and calledConstructor are same.
   constructorCall is obtained from
   1) variable xml through slicing path.

23.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestConstructor_InitializeBuiltinTypeField

Code with line numbers

This unit test case method tests constructor initialize builtin type field .

This unit test case includes following focal methods:
(1) var quux = globalScope.GetNamedChildren("Quux").First();(@line 232)
This focal method is related to assertions at line 235, line 238, line 240, line 241, line 242, line 243

This unit test case validates that:
(1) fieldType is not null.
   fieldType is obtained from
   1) variable xml through slicing path.

(2) constructor.ConstructorInitializers.Count is equal to 1.
   constructor is obtained from
   1) variable xml through slicing path.

(3) fieldCall is not null.
   fieldCall is obtained from
   1) variable xml through slicing path.

(4) fieldCall.IsConstructor is true.
   fieldCall is obtained from
   1) variable xml through slicing path.

(5) fieldCall.IsConstructorInitializer is true.
   fieldCall is obtained from
   1) variable xml through slicing path.

(6) fieldCall.FindMatches() is empty.
   fieldCall is obtained from
   1) variable xml through slicing path.

24.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestConstructor_InitializeField

Code with line numbers

This unit test case method tests constructor initialize field .

This unit test case includes following focal methods:
(1) var barConstructor = globalScope.GetDescendants().First();(@line 275)
This focal method is related to assertions at line 276, line 278, line 279, line 280, line 281

This unit test case validates that:
(1) barConstructor.ConstructorInitializers.Count is equal to 1.
   barConstructor is obtained from
   1) variable xml through slicing path.

(2) fieldCall is not null.
   fieldCall is obtained from
   1) variable xml through slicing path.

(3) fieldCall.IsConstructor is true.
   fieldCall is obtained from
   1) variable xml through slicing path.

(4) fieldCall.IsConstructorInitializer is true.
   fieldCall is obtained from
   1) variable xml through slicing path.

(5) fieldCall.FindMatches().FirstOrDefault() and fooConstructor are same.
   fieldCall is obtained from
   1) variable xml through slicing path.

25.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateAliasesForFiles_ImportClass

Code with line numbers

This unit test case method tests create aliases for files import class.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 290)
This focal method is related to assertions at line 292, line 294, line 295, line 296

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.AliasName is equal to "Foo".
   actual is obtained from
   1) variable xml through slicing path.

(4) actual.Target.ToString() is equal to "A::Foo".
   actual is obtained from
   1) variable xml through slicing path.

26.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateAliasesForFiles_ImportNamespace

Code with line numbers

This unit test case method tests create aliases for files import namespace.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 306)
This focal method is related to assertions at line 308, line 310, line 311

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.ImportedNamespace.ToString() is equal to "x :: y :: z".
   actual is obtained from
   1) variable xml through slicing path.

27.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateAliasesForFiles_TypeAlias

Code with line numbers

This unit test case method tests create aliases for files type alias.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 321)
This focal method is related to assertions at line 323, line 325, line 326, line 327

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.AliasName is equal to "x".
   actual is obtained from
   1) variable xml through slicing path.

(4) actual.Target.ToString() is equal to "foo::bar::baz".
   actual is obtained from
   1) variable xml through slicing path.

28.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGetImports

Code with line numbers

This unit test case method tests get imports .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 353)
This focal method is related to assertions at line 354, line 356, line 358, line 359
(2) var zDef = globalScope.GetDescendants().FirstOrDefault();(@line 361)
This focal method is related to assertions at line 362, line 364

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 3.
   globalScope is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) imports.Count is equal to 1.
   imports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) imports[0].ImportedNamespace.ToString() is equal to "x :: y :: z".
   imports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) zDef is not null.
   zDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) zUse.FindMatches().FirstOrDefault() and zDef are same.
   zUse is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

29.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGetImports_NestedImportNamespace

Code with line numbers

This unit test case method tests get imports nested import namespace .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 381)
This focal method is related to assertions at line 383, line 385, line 386, line 387

This unit test case validates that:
(1) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(2) imports.Count is equal to 2.
   imports is obtained from
   1) variable xml through slicing path.

(3) imports[0].ImportedNamespace.ToString() is equal to "std".
   imports is obtained from
   1) variable xml through slicing path.

(4) imports[1].ImportedNamespace.ToString() is equal to "x :: y :: z".
   imports is obtained from
   1) variable xml through slicing path.

30.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGetAliases_NestedImportClass

Code with line numbers

This unit test case method tests get aliases nested import class .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 415)
This focal method is related to assertions at line 417, line 419, line 420, line 421, line 423, line 424
(2) var barDef = globalScope.GetDescendants().FirstOrDefault();(@line 426)
This focal method is related to assertions at line 427, line 429

This unit test case validates that:
(1) foo is not null.
   foo is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) aliases.Count is equal to 1.
   aliases is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) aliases[0].Target.ToString() is equal to "B::Bar".
   aliases is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) aliases[0].AliasName is equal to "Bar".
   aliases is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) imports.Count is equal to 1.
   imports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) imports[0].ImportedNamespace.ToString() is equal to "x :: y :: z".
   imports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) barDef is not null.
   barDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(8) barUse.FindMatches().FirstOrDefault() and barDef are same.
   barUse is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

31.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGetAliases_NestedTypeAlias

Code with line numbers

This unit test case method tests get aliases nested type alias .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 447)
This focal method is related to assertions at line 449, line 451, line 452, line 453, line 455

This unit test case validates that:
(1) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(2) aliases.Count is equal to 1.
   aliases is obtained from
   1) variable xml through slicing path.

(3) aliases[0].Target.ToString() is equal to "foo :: bar :: baz".
   aliases is obtained from
   1) variable xml through slicing path.

(4) aliases[0].AliasName is equal to "x".
   aliases is obtained from
   1) variable xml through slicing path.

(5) imports[0].ImportedNamespace.ToString() is equal to "x :: y :: z".
   imports is obtained from
   1) variable xml through slicing path.

32.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestImport_NameResolution

Code with line numbers

This unit test case method tests import name resolution .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 503)
This focal method is related to assertions at line 504
(2) var baz = globalScope.GetDescendants().FirstOrDefault();(@line 506)
This focal method is related to assertions at line 507
(3) var thingy = globalScope.GetDescendants().FirstOrDefault();(@line 509)
This focal method is related to assertions at line 510, line 512, line 513, line 517, line 518

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 3.
   globalScope is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) baz is not null.
   baz is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) thingy is not null.
   thingy is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) thingyTypes.Count is equal to 1.
   thingyTypes is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) thingyTypes[0] and baz are same.
   thingyTypes is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) bazCall is not null.
   bazCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) bazCall.FindMatches().FirstOrDefault() and bazDef are same.
   bazCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

33.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestAlias_NameResolution_ImportType

Code with line numbers

This unit test case method tests alias name resolution import type .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 562)
This focal method is related to assertions at line 563
(2) var thingDef = globalScope.GetDescendants().FirstOrDefault();(@line 565)
This focal method is related to assertions at line 566, line 567
(3) var bDef = globalScope.GetDescendants().FirstOrDefault();(@line 569)
This focal method is related to assertions at line 570, line 571, line 573, line 574

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 3.
   globalScope is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) thingDef is not null.
   thingDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) TypeDefinition thingDef.ParentStatement.Name is equal to "Baz".
   thingDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) bDef is not null.
   bDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) bDef.ChildStatements.Count is equal to 1.
   bDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) thingCall is not null.
   thingCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) thingCall.FindMatches().First() and thingDef are same.
   thingCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

34.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestAlias_NameResolution_TypeAlias

Code with line numbers

This unit test case method tests alias name resolution type alias .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 619)
This focal method is related to assertions at line 620
(2) var thingDef = globalScope.GetDescendants().FirstOrDefault();(@line 622)
This focal method is related to assertions at line 623, line 624
(3) var bDef = globalScope.GetDescendants().FirstOrDefault();(@line 626)
This focal method is related to assertions at line 627, line 628, line 630, line 631

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 3.
   globalScope is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) thingDef is not null.
   thingDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) TypeDefinition thingDef.ParentStatement.Name is equal to "Baz".
   thingDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) bDef is not null.
   bDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) bDef.ChildStatements.Count is equal to 1.
   bDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) thingCall is not null.
   thingCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) thingCall.FindMatches().First() and thingDef are same.
   thingCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

35.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinition_ClassInNamespace

Code with line numbers

This unit test case method tests create type definition class in namespace.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 644)
This focal method is related to assertions at line 648, line 649, line 651

This unit test case validates that:
(1) namespaceA.Name is equal to "A".
   namespaceA is obtained from
   1) variable xml through slicing path.

(2) namespaceA.IsGlobal is false.
   namespaceA is obtained from
   1) variable xml through slicing path.

(3) typeB.Name is equal to "B".
   typeB is obtained from
   1) variable xml through slicing path.

36.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinition_ClassWithMethodDeclaration

Code with line numbers

This unit test case method tests create type definition class with method declaration.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 666)
This focal method is related to assertions at line 669, line 672, line 673, line 675

This unit test case validates that:
(1) typeA.ChildStatements.Count is equal to 1.
   typeA is obtained from
   1) variable xml through slicing path.

(2) typeA.Name is equal to "A".
   typeA is obtained from
   1) variable xml through slicing path.

(3) methodFoo.Name is equal to "foo".
   methodFoo is obtained from
   1) variable xml through slicing path.

(4) methodFoo.Parameters.Count is equal to 1.
   methodFoo is obtained from
   1) variable xml through slicing path.

37.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinition_StaticMethod

Code with line numbers

This unit test case method tests create type definition static method .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(fileUnit);(@line 689)
This focal method is related to assertions at line 692, line 693, line 694, line 696, line 697

This unit test case validates that:
(1) example is not null.
   example is obtained from
   1) variable xml through slicing path.

(2) example.Name is equal to "Example".
   example is obtained from
   1) variable xml through slicing path.

(3) example.ChildStatements.Count() is equal to 1.
   example is obtained from
   1) variable xml through slicing path.

(4) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(5) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable xml through slicing path.

38.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_ClassInFunction

Code with line numbers

This unit test case method tests create type definitions class in function.

This unit test case includes following focal methods:
(1) var mainMethod = codeParser.ParseFileUnit(xmlElement).ChildStatements.First() as MethodDefinition;(@line 710)
This focal method is related to assertions at line 712, line 715
(2) An assertion in line 716 validating that typeA.GetFullName() is equal to "main.A".
(3) An assertion in line 717 validating that typeA.GetAncestors().First().GetFullName() is equal to string.Empty.

This unit test case validates that:
(1) mainMethod.Name is equal to "main".

(2) typeA.Name is equal to "A".

39.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_ClassWithInnerClass

Code with line numbers

This unit test case method tests create type definitions class with inner class.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 729)
This focal method is related to assertions at line 734
(2) An assertion in line 735 validating that typeA.GetFullName() is equal to "A".
(3) An assertion in line 737 validating that typeB.GetFullName() is equal to "A.B".

This unit test case validates that:
(1) typeB.ParentStatement and typeA are same.
   typeB is obtained from
   1) variable xml through slicing path.

40.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_ClassWithParents

Code with line numbers

This unit test case method tests create type definitions class with parents.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 747)
This focal method is related to assertions at line 750, line 751, line 752, line 753

This unit test case validates that:
(1) actual.Name is equal to "A".
   actual is obtained from
   1) variable xml through slicing path.

(2) actual.ParentTypeNames.Count is equal to 3.
   actual is obtained from
   1) variable xml through slicing path.

(3) globalScope.IsGlobal is true.
   globalScope is obtained from
   1) variable xml through slicing path.

(4) actual.ParentStatement and globalScope are same.
   actual is obtained from
   1) variable xml through slicing path.

(5) parentMatchesExpected is true.

41.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_ClassWithQualifiedParent

Code with line numbers

This unit test case method tests create type definitions class with qualified parent.

This unit test case includes following focal methods:
(1) var actual = codeParser.ParseFileUnit(xmlElement).ChildStatements.First() as TypeDefinition;(@line 772)
This focal method is related to assertions at line 775, line 776, line 777, line 781, line 784, line 785, line 786

This unit test case validates that:
(1) actual.Name is equal to "D".

(2) actual.ParentTypeNames.Count is equal to 1.

(3) globalNamespace.IsGlobal is true.

(4) parent.Name is equal to "C".

(5) prefixNames.Count is equal to 2.

(6) prefixNames[0].Name is equal to "A".

(7) prefixNames[1].Name is equal to "B".

42.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_InnerClassWithNamespace

Code with line numbers

This unit test case method tests create type definitions inner class with namespace.

This unit test case includes following focal methods:
(1) var typeDefinitions = globalScope.GetDescendants().ToList();(@line 803)
This focal method is related to assertions at line 804, line 809, line 810, line 811, line 813, line 814, line 815

This unit test case validates that:
(1) typeDefinitions.Count is equal to 2.
   typeDefinitions is obtained from
   1) variable xml through slicing path.

(2) outer.Name is equal to "B".
   outer is obtained from
   1) variable xml through slicing path.

(3) outer.GetAncestors().First().GetFullName() is equal to "A".
   outer is obtained from
   1) variable xml through slicing path.

(4) outer.GetFullName() is equal to "A.B".
   outer is obtained from
   1) variable xml through slicing path.

(5) inner.Name is equal to "C".
   inner is obtained from
   1) variable xml through slicing path.

(6) inner.GetAncestors().First().GetFullName() is equal to "A".
   inner is obtained from
   1) variable xml through slicing path.

(7) inner.GetFullName() is equal to "A.B.C".
   inner is obtained from
   1) variable xml through slicing path.

43.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_Struct

Code with line numbers

This unit test case method tests create type definitions struct .

This unit test case includes following focal methods:
(1) var actual = codeParser.ParseFileUnit(xmlElement).ChildStatements.First() as TypeDefinition;(@line 825)
This focal method is related to assertions at line 828, line 829, line 830

This unit test case validates that:
(1) actual.Name is equal to "A".

(2) actual.Kind is equal to TypeKind.Struct.

(3) globalNamespace.IsGlobal is true.

44.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestCreateTypeDefinitions_Union

Code with line numbers

This unit test case method tests create type definitions union .

This unit test case includes following focal methods:
(1) var actual = codeParser.ParseFileUnit(xmlElement).ChildStatements.First() as TypeDefinition;(@line 843)
This focal method is related to assertions at line 845, line 846

This unit test case validates that:
(1) actual.Kind is equal to TypeKind.Union.

(2) globalNamespace.IsGlobal is true.

45.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGenericVariableDeclaration

Code with line numbers

This unit test case method tests generic variable declaration .

This unit test case includes following focal methods:
(1) var testScope = codeParser.ParseFileUnit(testUnit);(@line 856)
This focal method is related to assertions at line 859, line 860, line 861, line 862, line 863, line 864

This unit test case validates that:
(1) testDeclaration is not null.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(2) testDeclaration.Name is equal to "a".
   testDeclaration is obtained from
   1) variable xml through slicing path.

(3) testDeclaration.VariableType.Name is equal to "vector".
   testDeclaration is obtained from
   1) variable xml through slicing path.

(4) testDeclaration.VariableType.IsGeneric is true.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(5) testDeclaration.VariableType.TypeParameters.Count is equal to 1.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(6) testDeclaration.VariableType.TypeParameters.First().Name is equal to "int".
   testDeclaration is obtained from
   1) variable xml through slicing path.

46.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestGenericVariableDeclarationWithPrefix

Code with line numbers

This unit test case method tests generic variable declaration with prefix.

This unit test case includes following focal methods:
(1) var testScope = codeParser.ParseFileUnit(testUnit);(@line 874)
This focal method is related to assertions at line 877, line 878, line 879, line 880, line 881, line 882, line 883, line 884

This unit test case validates that:
(1) testDeclaration is not null.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(2) testDeclaration.Name is equal to "a".
   testDeclaration is obtained from
   1) variable xml through slicing path.

(3) testDeclaration.VariableType.Name is equal to "vector".
   testDeclaration is obtained from
   1) variable xml through slicing path.

(4) testDeclaration.VariableType.Prefix.Names.Count() is equal to 1.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(5) testDeclaration.VariableType.Prefix.Names.First().Name is equal to "std".
   testDeclaration is obtained from
   1) variable xml through slicing path.

(6) testDeclaration.VariableType.IsGeneric is true.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(7) testDeclaration.VariableType.TypeParameters.Count is equal to 1.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(8) testDeclaration.VariableType.TypeParameters.First().Name is equal to "int".
   testDeclaration is obtained from
   1) variable xml through slicing path.

47.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallCreation_LengthyCallingExpression

Code with line numbers

This unit test case method tests method call creation lengthy calling expression .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(testUnit);(@line 893)
This focal method is related to assertions at line 894, line 897, line 898, line 900, line 901, line 903, line 904, line 906, line 907, line 909, line 910, line 912, line 913, line 914, line 915

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) exp is not null.
   exp is obtained from
   1) variable xml through slicing path.

(3) exp.Components.Count is equal to 5.
   exp is obtained from
   1) variable xml through slicing path.

(4) a is not null.
   a is obtained from
   1) variable xml through slicing path.

(5) a.Name is equal to "a".
   a is obtained from
   1) variable xml through slicing path.

(6) arrow is not null.
   arrow is obtained from
   1) variable xml through slicing path.

(7) arrow.Text is equal to "->".
   arrow is obtained from
   1) variable xml through slicing path.

(8) b is not null.
   b is obtained from
   1) variable xml through slicing path.

(9) b.Name is equal to "b".
   b is obtained from
   1) variable xml through slicing path.

(10) dot is not null.
   dot is obtained from
   1) variable xml through slicing path.

(11) dot.Text is equal to ".".
   dot is obtained from
   1) variable xml through slicing path.

(12) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(13) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable xml through slicing path.

(14) foo.Arguments.Count is equal to 0.
   foo is obtained from
   1) variable xml through slicing path.

(15) foo.TypeArguments.Count is equal to 0.
   foo is obtained from
   1) variable xml through slicing path.

48.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMergeWithUsing

Code with line numbers

This unit test case method tests merge with using.

This unit test case includes following focal methods:
(1) var globalScope = headerScope.Merge(implementationScope);(@line 933)
This focal method is related to assertions at line 934
(2) var namespaceA = globalScope.GetDescendants().FirstOrDefault();(@line 936)
This focal method is related to assertions at line 937, line 938, line 941, line 942, line 945, line 946, line 947
(3) namespaceA = globalScope_implementationFirst.GetDescendants().FirstOrDefault();(@line 954)
This focal method is related to assertions at line 955, line 956, line 959, line 960, line 963, line 964, line 965

This unit test case validates that:
(1) globalScope.ChildStatements.OfType().Count() is equal to 1.
   globalScope is obtained from
   1) variable headerXml through slicing path
   2) variable implementationXml through slicing path.

(2) namespaceA is not null.
   namespaceA is obtained from
   1) variable headerXml through slicing path
   2) variable implementationXml through slicing path.

(3) namespaceA.ChildStatements.Count is equal to 1.
   namespaceA is obtained from
   1) variable headerXml through slicing path
   2) variable implementationXml through slicing path.

(4) typeB is not null.
   typeB is obtained from
   1) variable headerXml through slicing path
   2) variable implementationXml through slicing path.

(5) typeB.ChildStatements.Count is equal to 1.
   typeB is obtained from
   1) variable headerXml through slicing path
   2) variable implementationXml through slicing path.

(6) methodFoo is not null.
   methodFoo is obtained from
   1) variable headerXml through slicing path
   2) variable implementationXml through slicing path.

(7) methodFoo.ChildStatements.Count is equal to 0.
   methodFoo is obtained from
   1) variable headerXml through slicing path
   2) variable implementationXml through slicing path.

(8) methodFoo.Locations.Count is equal to 2.
   methodFoo is obtained from
   1) variable headerXml through slicing path
   2) variable implementationXml through slicing path.

(9) namespaceA is not null.

(10) namespaceA.ChildStatements.Count is equal to 1.

(11) typeB is not null.

(12) typeB.ChildStatements.Count is equal to 1.

(13) methodFoo is not null.

(14) methodFoo.ChildStatements.Count is equal to 0.

(15) methodFoo.Locations.Count is equal to 2.

49.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallCreation_WithConflictingMethodNames

Code with line numbers

This unit test case method tests method call creation with conflicting method names.

This unit test case includes following focal methods:
(1) var globalScope = scopeForA.Merge(scopeForB);(@line 997)
This focal method is related to assertions at line 998
(2) var classA = globalScope.GetDescendants().FirstOrDefault();(@line 1000)
This focal method is related to assertions at line 1001
(3) var classB = globalScope.GetDescendants().FirstOrDefault();(@line 1002)
This focal method is related to assertions at line 1003, line 1006, line 1008, line 1010, line 1012, line 1014, line 1015

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(2) classA is not null.
   classA is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(3) classB is not null.
   classB is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(4) aDotContains is not null.
   aDotContains is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(5) bDotContains is not null.
   bDotContains is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(6) aDotContains.ChildStatements.Count is equal to 1.
   aDotContains is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(7) methodCall is not null.
   methodCall is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(8) methodCall.FindMatches().FirstOrDefault() and bDotContains are same.
   methodCall is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(9) methodCall.FindMatches().FirstOrDefault() and aDotContains are not same.
   methodCall is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

50.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallCreation_WithThisKeyword

Code with line numbers

This unit test case method tests method call creation with this keyword.

This unit test case includes following focal methods:
(1) var aDotBar = globalScope.GetNamedChildren("A").First().GetNamedChildren("Bar").FirstOrDefault();(@line 1039)
This focal method is related to assertions at line 1040
(2) var classB = globalScope.GetDescendants().FirstOrDefault();(@line 1041)
This focal method is related to assertions at line 1042, line 1044, line 1046, line 1048, line 1050, line 1051, line 1052

This unit test case validates that:
(1) aDotBar is not null.
   aDotBar is obtained from
   1) variable a_xml through slicing path.

(2) classB is not null.
   classB is obtained from
   1) variable a_xml through slicing path.

(3) aDotBDotFoo is not null.
   aDotBDotFoo is obtained from
   1) variable a_xml through slicing path.

(4) aDotBDotBar is not null.
   aDotBDotBar is obtained from
   1) variable a_xml through slicing path.

(5) aDotBDotFoo.ChildStatements.Count is equal to 1.
   aDotBDotFoo is obtained from
   1) variable a_xml through slicing path.

(6) barCall is not null.
   barCall is obtained from
   1) variable a_xml through slicing path.

(7) barCall.FindMatches().FirstOrDefault() and aDotBDotBar are same.
   barCall is obtained from
   1) variable a_xml through slicing path.

(8) barCall.FindMatches().FirstOrDefault() and aDotBar are not same.
   barCall is obtained from
   1) variable a_xml through slicing path.

51.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallCreation_GlobalFunction

Code with line numbers

This unit test case method tests method call creation global function .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(unit);(@line 1069)
This focal method is related to assertions at line 1070
(2) var mainMethod = globalScope.GetNamedChildren("main").FirstOrDefault();(@line 1073)
This focal method is related to assertions at line 1075, line 1076, line 1079, line 1082, line 1084

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) fooMethod is not null.
   fooMethod is obtained from
   1) variable xml through slicing path.

(3) mainMethod is not null.
   mainMethod is obtained from
   1) variable xml through slicing path.

(4) mainMethod.ChildStatements.Count is equal to 2.
   mainMethod is obtained from
   1) variable xml through slicing path.

(5) fiveCall is not null.
   fiveCall is obtained from
   1) variable xml through slicing path.

(6) matches.FirstOrDefault() and fooMethod are same.
   matches is obtained from
   1) variable xml through slicing path.

52.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallCreation_CallGlobalNamespace

Code with line numbers

This unit test case method tests method call creation call global namespace .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(unit);(@line 1119)
This focal method is related to assertions at line 1120
(2) var print = globalScope.GetNamedChildren("A").First().GetNamedChildren("print").FirstOrDefault();(@line 1124)
This focal method is related to assertions at line 1126, line 1127, line 1128, line 1130, line 1133, line 1136, line 1139, line 1141, line 1142

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) globalFoo is not null.
   globalFoo is obtained from
   1) variable xml through slicing path.

(3) aFoo is not null.
   aFoo is obtained from
   1) variable xml through slicing path.

(4) print is not null.
   print is obtained from
   1) variable xml through slicing path.

(5) print.ChildStatements.Count is equal to 2.
   print is obtained from
   1) variable xml through slicing path.

(6) aCall is not null.
   aCall is obtained from
   1) variable xml through slicing path.

(7) aCallMatches.FirstOrDefault() and aFoo are same.
   aCallMatches is obtained from
   1) variable xml through slicing path.

(8) globalCall is not null.
   globalCall is obtained from
   1) variable xml through slicing path.

(9) globalCallMatches.Count is equal to 1.
   globalCallMatches is obtained from
   1) variable xml through slicing path.

(10) globalCallMatches.FirstOrDefault() and globalFoo are same.
   globalCallMatches is obtained from
   1) variable xml through slicing path.

53.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallFindMatches

Code with line numbers

This unit test case method tests method call find matches .

This unit test case includes following focal methods:
(1) An assertion in line 1179 validating that unmergedMainMethod.FindExpressions(true).First().FindMatches() is true.
(2) var = codeParser.ParseFileUnit(mainElement);(@line 1176)
This focal method is related to assertions at line 1188, line 1193, line 1194, line 1200
(3) var callInMain = mainMethod.FindExpressions(true).First();(@line 1196)
This focal method is related to assertions at line 1199, line 1201

This unit test case validates that:
(1) namedChildren.Count() is equal to 2.
   namedChildren is obtained from
   1) variable implementationXml through slicing path.

(2) typeA.Name is equal to "A".
   typeA is obtained from
   1) variable implementationXml through slicing path.

(3) mainMethod.Name is equal to "main".
   mainMethod is obtained from
   1) variable implementationXml through slicing path.

(4) callInMain.IsConstructor is true.
   callInMain is obtained from
   1) variable implementationXml through slicing path.

(5) constructor.IsConstructor is true.
   constructor is obtained from
   1) variable implementationXml through slicing path.

(6) callInMain.FindMatches().First() and constructor are same.
   callInMain is obtained from
   1) variable implementationXml through slicing path.

54.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallFindMatches_WithArguments

Code with line numbers

This unit test case method tests method call find matches with arguments.

This unit test case includes following focal methods:
(1) var = codeParser.ParseFileUnit(mainElement);(@line 1237)
This focal method is related to assertions at line 1246, line 1251, line 1252, line 1258
(2) var callInMain = mainMethod.FindExpressions(true).First();(@line 1254)
This focal method is related to assertions at line 1257, line 1259

This unit test case validates that:
(1) namedChildren.Count() is equal to 2.
   namedChildren is obtained from
   1) variable implementationXml through slicing path.

(2) typeA.Name is equal to "A".
   typeA is obtained from
   1) variable implementationXml through slicing path.

(3) mainMethod.Name is equal to "main".
   mainMethod is obtained from
   1) variable implementationXml through slicing path.

(4) callInMain.IsConstructor is true.
   callInMain is obtained from
   1) variable implementationXml through slicing path.

(5) constructor.IsConstructor is true.
   constructor is obtained from
   1) variable implementationXml through slicing path.

(6) callInMain.FindMatches().First() and constructor are same.
   callInMain is obtained from
   1) variable implementationXml through slicing path.

55.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodCallMatchToParameter

Code with line numbers

This unit test case method tests method call match to parameter.

This unit test case includes following focal methods:
(1) var classB = testScope.GetNamedChildren("B").FirstOrDefault();(@line 1274)
This focal method is related to assertions at line 1276, line 1277, line 1280, line 1283, line 1285

This unit test case validates that:
(1) methodCallFoo is not null.
   methodCallFoo is obtained from
   1) variable xml through slicing path.

(2) classB is not null.
   classB is obtained from
   1) variable xml through slicing path.

(3) bDotFoo is not null.
   bDotFoo is obtained from
   1) variable xml through slicing path.

(4) callToFoo is not null.
   callToFoo is obtained from
   1) variable xml through slicing path.

(5) callToFoo.FindMatches().FirstOrDefault() is equal to bDotFoo.
   callToFoo is obtained from
   1) variable xml through slicing path.

56.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_ReturnType

Code with line numbers

This unit test case method tests method definition return type .

This unit test case includes following focal methods:
(1) var testScope = codeParser.ParseFileUnit(testUnit);(@line 1295)
This focal method is related to assertions at line 1298, line 1299, line 1300, line 1301, line 1302, line 1303, line 1304

This unit test case validates that:
(1) method is not null.
   method is obtained from
   1) variable xml through slicing path.

(2) method.Name is equal to "Foo".
   method is obtained from
   1) variable xml through slicing path.

(3) method.ReturnType.Name is equal to "int".
   method is obtained from
   1) variable xml through slicing path.

(4) method.Parameters.Count is equal to 0.
   method is obtained from
   1) variable xml through slicing path.

(5) method.IsConstructor is false.
   method is obtained from
   1) variable xml through slicing path.

(6) method.IsDestructor is false.
   method is obtained from
   1) variable xml through slicing path.

(7) method.IsPartial is false.
   method is obtained from
   1) variable xml through slicing path.

57.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_ReturnTypeAndSpecifier

Code with line numbers

This unit test case method tests method definition return type and specifier .

This unit test case includes following focal methods:
(1) var testScope = codeParser.ParseFileUnit(testUnit);(@line 1314)
This focal method is related to assertions at line 1317, line 1318, line 1320

This unit test case validates that:
(1) method is not null.
   method is obtained from
   1) variable xml through slicing path.

(2) method.Name is equal to "Foo".
   method is obtained from
   1) variable xml through slicing path.

(3) method.ReturnType.Name is equal to "int".
   method is obtained from
   1) variable xml through slicing path.

58.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_Parameters

Code with line numbers

This unit test case method tests method definition parameters .

This unit test case includes following focal methods:
(1) var foo = testScope.GetNamedChildren("Foo").First();(@line 1330)
This focal method is related to assertions at line 1331, line 1332, line 1333, line 1334, line 1335, line 1336

This unit test case validates that:
(1) foo.ReturnType.Name is equal to "int".
   foo is obtained from
   1) variable xml through slicing path.

(2) foo.Parameters.Count is equal to 2.
   foo is obtained from
   1) variable xml through slicing path.

(3) foo.Parameters[0].VariableType.Name is equal to "int".
   foo is obtained from
   1) variable xml through slicing path.

(4) foo.Parameters[0].Name is equal to "bar".
   foo is obtained from
   1) variable xml through slicing path.

(5) foo.Parameters[1].VariableType.Name is equal to "char".
   foo is obtained from
   1) variable xml through slicing path.

(6) foo.Parameters[1].Name is equal to "baz".
   foo is obtained from
   1) variable xml through slicing path.

59.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_VoidParameter

Code with line numbers

This unit test case method tests method definition void parameter .

This unit test case includes following focal methods:
(1) var method = testScope.GetDescendants().FirstOrDefault();(@line 1348)
This focal method is related to assertions at line 1349, line 1351

This unit test case validates that:
(1) method is not null.
   method is obtained from
   1) variable xml through slicing path.

(2) method.Parameters.Count is equal to 0.
   method is obtained from
   1) variable xml through slicing path.

60.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_FunctionPointerParameter

Code with line numbers

This unit test case method tests method definition function pointer parameter .

This unit test case includes following focal methods:
(1) var foo = testScope.GetNamedChildren("Foo").First();(@line 1361)
This focal method is related to assertions at line 1362, line 1363, line 1364, line 1365, line 1366, line 1367

This unit test case validates that:
(1) foo.ReturnType.Name is equal to "int".
   foo is obtained from
   1) variable xml through slicing path.

(2) foo.Parameters.Count is equal to 2.
   foo is obtained from
   1) variable xml through slicing path.

(3) foo.Parameters[0].VariableType.Name is equal to "char".
   foo is obtained from
   1) variable xml through slicing path.

(4) foo.Parameters[0].Name is equal to "bar".
   foo is obtained from
   1) variable xml through slicing path.

(5) foo.Parameters[1].VariableType.Name is equal to "int".
   foo is obtained from
   1) variable xml through slicing path.

(6) foo.Parameters[1].Name is equal to "pInit".
   foo is obtained from
   1) variable xml through slicing path.

61.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_VoidReturn

Code with line numbers

This unit test case method tests method definition void return .

This unit test case includes following focal methods:
(1) var method = testScope.GetDescendants().FirstOrDefault();(@line 1379)
This focal method is related to assertions at line 1380, line 1381, line 1382

This unit test case validates that:
(1) method is not null.
   method is obtained from
   1) variable xml through slicing path.

(2) method.Name is equal to "Foo".
   method is obtained from
   1) variable xml through slicing path.

(3) method.ReturnType is null.
   method is obtained from
   1) variable xml through slicing path.

62.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestMethodDefinition_DefaultArguments

Code with line numbers

This unit test case method tests method definition default arguments .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(unit).Merge(new NamespaceDefinition());(@line 1407)
This focal method is related to assertions at line 1408
(2) var mainMethod = globalScope.GetNamedChildren("main").FirstOrDefault();(@line 1411)
This focal method is related to assertions at line 1413, line 1414, line 1416, line 1418, line 1419, line 1422, line 1423

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.

(2) fooMethod is not null.

(3) mainMethod is not null.

(4) mainMethod.ChildStatements.Count is equal to 3.

(5) defaultCall is not null.

(6) defaultCall.FindMatches().FirstOrDefault() and fooMethod are same.

(7) fiveCall is not null.

(8) fiveCall.FindMatches().FirstOrDefault() and fooMethod are same.

63.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestTwoVariableDeclarations

Code with line numbers

This unit test case method tests two variable declarations .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(testUnit);(@line 1432)
This focal method is related to assertions at line 1437, line 1438, line 1439, line 1440, line 1441

This unit test case validates that:
(1) varDecls.Count is equal to 2.
   varDecls is obtained from
   1) variable testXml through slicing path.

(2) varDecls[0].Name is equal to "a".
   varDecls is obtained from
   1) variable testXml through slicing path.

(3) varDecls[0].VariableType.Name is equal to "int".
   varDecls is obtained from
   1) variable testXml through slicing path.

(4) varDecls[1].Name is equal to "b".
   varDecls is obtained from
   1) variable testXml through slicing path.

(5) varDecls[1].VariableType and varDecls[0].VariableType are same.
   varDecls is obtained from
   1) variable testXml through slicing path.

64.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestThreeVariableDeclarations

Code with line numbers

This unit test case method tests three variable declarations .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(testUnit);(@line 1450)
This focal method is related to assertions at line 1455, line 1456, line 1457, line 1458, line 1459, line 1460, line 1461

This unit test case validates that:
(1) varDecls.Count is equal to 3.
   varDecls is obtained from
   1) variable testXml through slicing path.

(2) varDecls[0].Name is equal to "a".
   varDecls is obtained from
   1) variable testXml through slicing path.

(3) varDecls[0].VariableType.Name is equal to "int".
   varDecls is obtained from
   1) variable testXml through slicing path.

(4) varDecls[1].Name is equal to "b".
   varDecls is obtained from
   1) variable testXml through slicing path.

(5) varDecls[1].VariableType and varDecls[0].VariableType are same.
   varDecls is obtained from
   1) variable testXml through slicing path.

(6) varDecls[2].Name is equal to "c".
   varDecls is obtained from
   1) variable testXml through slicing path.

(7) varDecls[2].VariableType and varDecls[0].VariableType are same.
   varDecls is obtained from
   1) variable testXml through slicing path.

65.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestVariablesWithSpecifiers

Code with line numbers

This unit test case method tests variables with specifiers.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(testUnit);(@line 1476)
This focal method is related to assertions at line 1477, line 1480, line 1481, line 1482, line 1483, line 1486, line 1487, line 1488, line 1489, line 1492, line 1493, line 1494, line 1495, line 1498, line 1499, line 1500, line 1501

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 4.
   globalScope is obtained from
   1) variable testXml through slicing path.

(2) declA is not null.
   declA is obtained from
   1) variable testXml through slicing path.

(3) declA.Name is equal to "A".
   declA is obtained from
   1) variable testXml through slicing path.

(4) declA.VariableType.Name is equal to "int".
   declA is obtained from
   1) variable testXml through slicing path.

(5) declA.Accessibility is equal to AccessModifier.None.
   declA is obtained from
   1) variable testXml through slicing path.

(6) declB is not null.
   declB is obtained from
   1) variable testXml through slicing path.

(7) declB.Name is equal to "B".
   declB is obtained from
   1) variable testXml through slicing path.

(8) declB.VariableType.Name is equal to "int".
   declB is obtained from
   1) variable testXml through slicing path.

(9) declB.Accessibility is equal to AccessModifier.None.
   declB is obtained from
   1) variable testXml through slicing path.

(10) declC is not null.
   declC is obtained from
   1) variable testXml through slicing path.

(11) declC.Name is equal to "C".
   declC is obtained from
   1) variable testXml through slicing path.

(12) declC.VariableType.Name is equal to "Foo".
   declC is obtained from
   1) variable testXml through slicing path.

(13) declC.Accessibility is equal to AccessModifier.None.
   declC is obtained from
   1) variable testXml through slicing path.

(14) declD is not null.
   declD is obtained from
   1) variable testXml through slicing path.

(15) declD.Name is equal to "D".
   declD is obtained from
   1) variable testXml through slicing path.

(16) declD.VariableType.Name is equal to "Foo".
   declD is obtained from
   1) variable testXml through slicing path.

(17) declD.Accessibility is equal to AccessModifier.None.
   declD is obtained from
   1) variable testXml through slicing path.

66.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestLiteralUse

Code with line numbers

This unit test case method tests literal use .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 1518)
This focal method is related to assertions at line 1521, line 1522, line 1523, line 1526, line 1527, line 1528, line 1531, line 1534, line 1535, line 1536, line 1539, line 1540, line 1541

This unit test case validates that:
(1) numLit is not null.
   numLit is obtained from
   1) variable xml through slicing path.

(2) numLit.Text is equal to "17".
   numLit is obtained from
   1) variable xml through slicing path.

(3) numLit.Kind is equal to LiteralKind.Number.
   numLit is obtained from
   1) variable xml through slicing path.

(4) stringLit is not null.
   stringLit is obtained from
   1) variable xml through slicing path.

(5) stringLit.Text is equal to "\"watermelon\"".
   stringLit is obtained from
   1) variable xml through slicing path.

(6) stringLit.Kind is equal to LiteralKind.String.
   stringLit is obtained from
   1) variable xml through slicing path.

(7) ifStmt is not null.
   ifStmt is obtained from
   1) variable xml through slicing path.

(8) boolLit is not null.
   boolLit is obtained from
   1) variable xml through slicing path.

(9) boolLit.Text is equal to "true".
   boolLit is obtained from
   1) variable xml through slicing path.

(10) boolLit.Kind is equal to LiteralKind.Boolean.
   boolLit is obtained from
   1) variable xml through slicing path.

(11) charLit is not null.
   charLit is obtained from
   1) variable xml through slicing path.

(12) charLit.Text is equal to "\'h\'".
   charLit is obtained from
   1) variable xml through slicing path.

(13) charLit.Kind is equal to LiteralKind.Character.
   charLit is obtained from
   1) variable xml through slicing path.

67.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestIfElse

Code with line numbers

This unit test case method tests if else .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 1560)
This focal method is related to assertions at line 1562, line 1563, line 1564, line 1565, line 1566

This unit test case validates that:
(1) ifStmt is not null.
   ifStmt is obtained from
   1) variable xml through slicing path.

(2) ifStmt.Content is null.
   ifStmt is obtained from
   1) variable xml through slicing path.

(3) ifStmt.Condition is not null.
   ifStmt is obtained from
   1) variable xml through slicing path.

(4) ifStmt.ChildStatements.Count is equal to 1.
   ifStmt is obtained from
   1) variable xml through slicing path.

(5) ifStmt.ElseStatements.Count is equal to 2.
   ifStmt is obtained from
   1) variable xml through slicing path.

68.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestIfElseIf

Code with line numbers

This unit test case method tests if else if .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 1588)
This focal method is related to assertions at line 1591, line 1592, line 1593, line 1594, line 1595, line 1598, line 1599, line 1600, line 1601, line 1602

This unit test case validates that:
(1) ifStmt is not null.
   ifStmt is obtained from
   1) variable xml through slicing path.

(2) ifStmt.Content is null.
   ifStmt is obtained from
   1) variable xml through slicing path.

(3) ifStmt.Condition is not null.
   ifStmt is obtained from
   1) variable xml through slicing path.

(4) ifStmt.ChildStatements.Count is equal to 1.
   ifStmt is obtained from
   1) variable xml through slicing path.

(5) ifStmt.ElseStatements.Count is equal to 1.
   ifStmt is obtained from
   1) variable xml through slicing path.

(6) ifStmt2 is not null.
   ifStmt2 is obtained from
   1) variable xml through slicing path.

(7) ifStmt2.Content is null.
   ifStmt2 is obtained from
   1) variable xml through slicing path.

(8) ifStmt2.Condition is not null.
   ifStmt2 is obtained from
   1) variable xml through slicing path.

(9) ifStmt2.ChildStatements.Count is equal to 2.
   ifStmt2 is obtained from
   1) variable xml through slicing path.

(10) ifStmt2.ElseStatements.Count is equal to 1.
   ifStmt2 is obtained from
   1) variable xml through slicing path.

69.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestEmptyStatement

Code with line numbers

This unit test case method tests empty statement .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 1611)
This focal method is related to assertions at line 1612, line 1614, line 1615, line 1616

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.ChildStatements.Count is equal to 0.
   actual is obtained from
   1) variable xml through slicing path.

(4) actual.Content is null.
   actual is obtained from
   1) variable xml through slicing path.

70.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestVariableUse_Index

Code with line numbers

This unit test case method tests variable use index .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 1625)
This focal method is related to assertions at line 1626, line 1628, line 1629, line 1631, line 1632, line 1634, line 1635, line 1637, line 1638, line 1640, line 1641, line 1642

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) exp is not null.
   exp is obtained from
   1) variable xml through slicing path.

(3) exp.Components.Count is equal to 3.
   exp is obtained from
   1) variable xml through slicing path.

(4) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(5) foo.Name is equal to "foo".
   foo is obtained from
   1) variable xml through slicing path.

(6) op is not null.
   op is obtained from
   1) variable xml through slicing path.

(7) op.Text is equal to ".".
   op is obtained from
   1) variable xml through slicing path.

(8) bar is not null.
   bar is obtained from
   1) variable xml through slicing path.

(9) bar.Name is equal to "bar".
   bar is obtained from
   1) variable xml through slicing path.

(10) index is not null.
   index is obtained from
   1) variable xml through slicing path.

(11) index.Text is equal to "17".
   index is obtained from
   1) variable xml through slicing path.

(12) index.Kind is equal to LiteralKind.Number.
   index is obtained from
   1) variable xml through slicing path.

71.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveVariable_Field

Code with line numbers

This unit test case method tests resolve variable field .

This unit test case includes following focal methods:
(1) var aConstructor = globalScope.GetDescendants().First();(@line 1661)
This focal method is related to assertions at line 1662, line 1664, line 1665

This unit test case validates that:
(1) aConstructor.ChildStatements.Count is equal to 1.
   aConstructor is obtained from
   1) variable xml through slicing path.

(2) fooUse is not null.
   fooUse is obtained from
   1) variable xml through slicing path.

(3) fooUse.FindMatches().FirstOrDefault() and fooDecl are same.
   fooUse is obtained from
   1) variable xml through slicing path.

72.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveVariable_FieldInParent

Code with line numbers

This unit test case method tests resolve variable field in parent.

This unit test case includes following focal methods:
(1) var aConstructor = globalScope.GetDescendants().First();(@line 1690)
This focal method is related to assertions at line 1691, line 1693, line 1694

This unit test case validates that:
(1) aConstructor.ChildStatements.Count is equal to 1.
   aConstructor is obtained from
   1) variable xml through slicing path.

(2) fooUse is not null.
   fooUse is obtained from
   1) variable xml through slicing path.

(3) fooUse.FindMatches().FirstOrDefault() and fooDecl are same.
   fooUse is obtained from
   1) variable xml through slicing path.

73.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveVariable_Global

Code with line numbers

This unit test case method tests resolve variable global .

This unit test case includes following focal methods:
(1) var bar = globalScope.GetDescendants().First();(@line 1711)
This focal method is related to assertions at line 1712, line 1714, line 1715

This unit test case validates that:
(1) bar.ChildStatements.Count is equal to 1.
   bar is obtained from
   1) variable xml through slicing path.

(2) fooUse is not null.
   fooUse is obtained from
   1) variable xml through slicing path.

(3) fooUse.FindMatches().FirstOrDefault() and fooDecl are same.
   fooUse is obtained from
   1) variable xml through slicing path.

74.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveVariable_VarInNamespace

Code with line numbers

This unit test case method tests resolve variable var in namespace.

This unit test case includes following focal methods:
(1) var bar = globalScope.GetDescendants().First();(@line 1736)
This focal method is related to assertions at line 1737, line 1739, line 1740

This unit test case validates that:
(1) bar.ChildStatements.Count is equal to 1.
   bar is obtained from
   1) variable xml through slicing path.

(2) fooUse is not null.
   fooUse is obtained from
   1) variable xml through slicing path.

(3) fooUse.FindMatches().FirstOrDefault() and fooDecl are same.
   fooUse is obtained from
   1) variable xml through slicing path.

75.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveVariable_Masking

Code with line numbers

This unit test case method tests resolve variable masking .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 1763)
This focal method is related to assertions at line 1764

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) . ChildStatements.Count is equal to 4.

(3) globalFooUseMatches.Count is equal to 1.
   globalFooUseMatches is obtained from
   1) variable globalFooUse through slicing path.

(4) globalFooUseMatches[0] and globalFoo are same.
   globalFooUseMatches is obtained from
   1) variable globalFooUse through slicing path.

(5) localFooUseMatches.Count is equal to 1.
   localFooUseMatches is obtained from
   1) variable localFooUse through slicing path.

(6) localFooUseMatches[0] and localFoo are same.
   localFooUseMatches is obtained from
   1) variable localFooUse through slicing path.

76.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestVariableDeclaredInCallingObjectWithParentClass

Code with line numbers

This unit test case method tests variable declared in calling object with parent class.

This unit test case includes following focal methods:
(1) var typeD = globalScope.GetNamedChildren("D").FirstOrDefault();(@line 1814)
This focal method is related to assertions at line 1816, line 1817, line 1818, line 1819, line 1822, line 1823, line 1826, line 1829, line 1832, line 1834

This unit test case validates that:
(1) typeA is not null.
   typeA is obtained from
   1) variable a_xml through slicing path.

(2) typeB is not null.
   typeB is obtained from
   1) variable a_xml through slicing path.

(3) typeC is not null.
   typeC is obtained from
   1) variable a_xml through slicing path.

(4) typeD is not null.
   typeD is obtained from
   1) variable a_xml through slicing path.

(5) adotB is not null.
   adotB is obtained from
   1) variable a_xml through slicing path.

(6) adotB.Name is equal to "b".
   adotB is obtained from
   1) variable a_xml through slicing path.

(7) bDotFoo is not null.
   bDotFoo is obtained from
   1) variable a_xml through slicing path.

(8) dDotBar is not null.
   dDotBar is obtained from
   1) variable a_xml through slicing path.

(9) callToFoo is not null.
   callToFoo is obtained from
   1) variable a_xml through slicing path.

(10) callToFoo.FindMatches().FirstOrDefault() is equal to bDotFoo.
   callToFoo is obtained from
   1) variable a_xml through slicing path.

77.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveArrayVariable_Local

Code with line numbers

This unit test case method tests resolve array variable local .

This unit test case includes following focal methods:
(1) var ifStmt = globalScope.GetDescendants().First();(@line 1854)
This focal method is related to assertions at line 1855, line 1858, line 1860, line 1861

This unit test case validates that:
(1) ifStmt.ChildStatements.Count() is equal to 2.
   ifStmt is obtained from
   1) variable xml through slicing path.

(2) barDecl is not null.
   barDecl is obtained from
   1) variable xml through slicing path.

(3) barUse is not null.
   barUse is obtained from
   1) variable xml through slicing path.

(4) barUse.FindMatches().FirstOrDefault() and barDecl are same.
   barUse is obtained from
   1) variable xml through slicing path.

78.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveArrayVariable_Field

Code with line numbers

This unit test case method tests resolve array variable field .

This unit test case includes following focal methods:
(1) var aConstructor = globalScope.GetDescendants().First();(@line 1886)
This focal method is related to assertions at line 1887, line 1889, line 1890

This unit test case validates that:
(1) aConstructor.ChildStatements.Count is equal to 2.
   aConstructor is obtained from
   1) variable xml through slicing path.

(2) fooUse is not null.
   fooUse is obtained from
   1) variable xml through slicing path.

(3) fooUse.FindMatches().FirstOrDefault() and fooDecl are same.
   fooUse is obtained from
   1) variable xml through slicing path.

79.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestResolveCallOnArrayVariable

Code with line numbers

This unit test case method tests resolve call on array variable.

This unit test case includes following focal methods:
(1) var getNum = globalScope.GetDescendants().FirstOrDefault();(@line 1928)
This focal method is related to assertions at line 1929

This unit test case validates that:
(1) getNum is not null.
   getNum is obtained from
   1) variable xml through slicing path.

(2) is not null.

(3) . ChildStatements.Count is equal to 3.

(4) matches.Count is equal to 1.
   matches is obtained from
   1) variable getNumCall through slicing path.

(5) matches.First() and getNum are same.
   matches is obtained from
   1) variable getNumCall through slicing path.

80.  ABB.SrcML.Data.Test.CPlusPlusCodeParserTests.TestTypeUseForOtherNamespace

Code with line numbers

This unit test case method tests type use for other namespace.

This unit test case includes following focal methods:
(1) var typeE = globalScope.GetDescendants().Where().FirstOrDefault();(@line 1983)
This focal method is related to assertions at line 1986, line 1987, line 1990, line 1991, line 1994, line 1995, line 2000, line 2001, line 2002, line 2004, line 2005

This unit test case validates that:
(1) mainMethod is not null.
   mainMethod is obtained from
   1) variable c_xml through slicing path.

(2) mainMethod.Name is equal to "main".
   mainMethod is obtained from
   1) variable c_xml through slicing path.

(3) fooMethod is not null.
   fooMethod is obtained from
   1) variable c_xml through slicing path.

(4) fooMethod.Name is equal to "Foo".
   fooMethod is obtained from
   1) variable c_xml through slicing path.

(5) cDeclaration is not null.
   cDeclaration is obtained from
   1) variable c_xml through slicing path.

(6) cDeclaration.VariableType.ResolveType().FirstOrDefault() and typeC are same.
   cDeclaration is obtained from
   1) variable c_xml through slicing path.

(7) callToCConstructor.Name is equal to "C".
   callToCConstructor is obtained from
   1) variable c_xml through slicing path.

(8) callToCConstructor.IsConstructor is true.
   callToCConstructor is obtained from
   1) variable c_xml through slicing path.

(9) callToCConstructor.FindMatches().FirstOrDefault() is null.
   callToCConstructor is obtained from
   1) variable c_xml through slicing path.

(10) callToFoo.Name is equal to "Foo".
   callToFoo is obtained from
   1) variable c_xml through slicing path.

(11) callToFoo.FindMatches().FirstOrDefault() and fooMethod are same.
   callToFoo is obtained from
   1) variable c_xml through slicing path.

81.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestNamespace

Code with line numbers

This unit test case method tests namespace .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(unit);(@line 41)
This focal method is related to assertions at line 42, line 45, line 46, line 47

This unit test case validates that:
(1) globalScope.IsGlobal is true.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.Name is equal to "A".
   actual is obtained from
   1) variable xml through slicing path.

(4) actual.ChildStatements.Count is equal to 1.
   actual is obtained from
   1) variable xml through slicing path.

82.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallToGenericMethod

Code with line numbers

This unit test case method tests call to generic method.

This unit test case includes following focal methods:
(1) var bar = globalScope.GetDescendants().FirstOrDefault();(@line 68)
This focal method is related to assertions at line 69, line 70, line 72, line 74, line 76

This unit test case validates that:
(1) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(2) bar is not null.
   bar is obtained from
   1) variable xml through slicing path.

(3) bar.ChildStatements.Count is equal to 1.
   bar is obtained from
   1) variable xml through slicing path.

(4) callToFoo is not null.
   callToFoo is obtained from
   1) variable xml through slicing path.

(5) callToFoo.FindMatches().FirstOrDefault() and foo are same.
   callToFoo is obtained from
   1) variable xml through slicing path.

83.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallToGrandparent

Code with line numbers

This unit test case method tests call to grandparent.

This unit test case includes following focal methods:
(1) var dDotBar = scope.GetDescendants().FirstOrDefault();(@line 96)
This focal method is related to assertions at line 97, line 98, line 100, line 102, line 104

This unit test case validates that:
(1) bDotFoo is not null.
   bDotFoo is obtained from
   1) variable xml through slicing path.

(2) dDotBar is not null.
   dDotBar is obtained from
   1) variable xml through slicing path.

(3) dDotBar.ChildStatements.Count is equal to 1.
   dDotBar is obtained from
   1) variable xml through slicing path.

(4) callToFoo is not null.
   callToFoo is obtained from
   1) variable xml through slicing path.

(5) callToFoo.FindMatches().FirstOrDefault() and bDotFoo are same.
   callToFoo is obtained from
   1) variable xml through slicing path.

84.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestMethodCallToParentOfCallingObject

Code with line numbers

This unit test case method tests method call to parent of calling object.

This unit test case includes following focal methods:
(1) var typeC = globalScope.GetNamedChildren("C").FirstOrDefault();(@line 138)
This focal method is related to assertions at line 140, line 141, line 142, line 147, line 148, line 152, line 153, line 155, line 157, line 158

This unit test case validates that:
(1) typeA is not null.
   typeA is obtained from
   1) variable a_xml through slicing path.

(2) typeB is not null.
   typeB is obtained from
   1) variable a_xml through slicing path.

(3) typeC is not null.
   typeC is obtained from
   1) variable a_xml through slicing path.

(4) aDotFoo is not null.
   aDotFoo is obtained from
   1) variable a_xml through slicing path.

(5) cDotMain is not null.
   cDotMain is obtained from
   1) variable a_xml through slicing path.

(6) callToFooFromC is not null.
   callToFooFromC is obtained from
   1) variable a_xml through slicing path.

(7) callToFooFromC.Name is equal to "Foo".
   callToFooFromC is obtained from
   1) variable a_xml through slicing path.

(8) callingObject.Name is equal to "b".
   callingObject is obtained from
   1) variable a_xml through slicing path.

(9) callingObject.ResolveType().FirstOrDefault() is equal to typeB.
   callingObject is obtained from
   1) variable a_xml through slicing path.

(10) callToFooFromC.FindMatches().FirstOrDefault() is equal to aDotFoo.
   callToFooFromC is obtained from
   1) variable a_xml through slicing path.

85.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallWithTypeParameters

Code with line numbers

This unit test case method tests call with type parameters.

This unit test case includes following focal methods:
(1) var queryTMethod = scope.GetDescendants().LastOrDefault();(@line 194)
This focal method is related to assertions at line 195
(2) var test1Method = scope.GetDescendants().FirstOrDefault();(@line 196)
This focal method is related to assertions at line 197, line 199, line 201, line 204, line 205

This unit test case validates that:
(1) queryTMethod is not null.
   queryTMethod is obtained from
   1) variable xml through slicing path.

(2) test1Method is not null.
   test1Method is obtained from
   1) variable xml through slicing path.

(3) test1Method.ChildStatements.Count is equal to 2.
   test1Method is obtained from
   1) variable xml through slicing path.

(4) callToQuery is not null.
   callToQuery is obtained from
   1) variable xml through slicing path.

(5) matches.Count is equal to 1.
   matches is obtained from
   1) variable xml through slicing path.

(6) matches[0] and queryTMethod are same.
   matches is obtained from
   1) variable xml through slicing path.

86.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallConstructor

Code with line numbers

This unit test case method tests call constructor .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 224)
This focal method is related to assertions at line 225
(2) var fooConstructor = globalScope.GetDescendants().FirstOrDefault();(@line 227)
This focal method is related to assertions at line 228, line 230, line 231

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) fooConstructor is not null.
   fooConstructor is obtained from
   1) variable xml through slicing path.

(3) fooCall is not null.
   fooCall is obtained from
   1) variable xml through slicing path.

(4) fooCall.FindMatches().First() and fooConstructor are same.
   fooCall is obtained from
   1) variable xml through slicing path.

87.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestConstructorWithBaseKeyword

Code with line numbers

This unit test case method tests constructor with base keyword.

This unit test case includes following focal methods:
(1) var cConstructor = globalScope.GetDescendants().First();(@line 249)
This focal method is related to assertions at line 250, line 253, line 254, line 255, line 256, line 257

This unit test case validates that:
(1) cConstructor.ConstructorInitializers.Count is equal to 1.
   cConstructor is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(2) methodCall is not null.
   methodCall is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(3) methodCall.IsConstructor is true.
   methodCall is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(4) methodCall.IsConstructorInitializer is true.
   methodCall is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(5) methodCall.Name is equal to "base".
   methodCall is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(6) methodCall.FindMatches().FirstOrDefault() and bConstructor are same.
   methodCall is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

88.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestConstructorWithThisKeyword

Code with line numbers

This unit test case method tests constructor with this keyword.

This unit test case includes following focal methods:
(1) var defaultConstructor = globalScope.GetDescendants().First();(@line 282)
This focal method is related to assertions at line 283, line 286, line 287, line 288, line 289, line 290

This unit test case validates that:
(1) defaultConstructor.ConstructorInitializers.Count is equal to 1.
   defaultConstructor is obtained from
   1) variable bXml through slicing path.

(2) methodCall is not null.
   methodCall is obtained from
   1) variable bXml through slicing path.

(3) methodCall.IsConstructor is true.
   methodCall is obtained from
   1) variable bXml through slicing path.

(4) methodCall.IsConstructorInitializer is true.
   methodCall is obtained from
   1) variable bXml through slicing path.

(5) methodCall.Name is equal to "this".
   methodCall is obtained from
   1) variable bXml through slicing path.

(6) methodCall.FindMatches().FirstOrDefault() and oneArgumentConstructor are same.
   methodCall is obtained from
   1) variable bXml through slicing path.

89.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateAliasesForFiles_UsingNamespace

Code with line numbers

This unit test case method tests create aliases for files using namespace.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 299)
This focal method is related to assertions at line 300, line 303, line 304

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.ImportedNamespace.ToString() is equal to "x.y.z".
   actual is obtained from
   1) variable xml through slicing path.

90.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateAliasesForFiles_UsingAlias

Code with line numbers

This unit test case method tests create aliases for files using alias.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 313)
This focal method is related to assertions at line 314, line 317, line 318, line 319

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.AliasName is equal to "x".
   actual is obtained from
   1) variable xml through slicing path.

(4) actual.Target.ToString() is equal to "Foo.Bar.Baz".
   actual is obtained from
   1) variable xml through slicing path.

91.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetImports

Code with line numbers

This unit test case method tests get imports .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 337)
This focal method is related to assertions at line 338, line 340, line 342, line 343
(2) var nsd = globalScope.GetDescendants().FirstOrDefault();(@line 345)
This focal method is related to assertions at line 346, line 348, line 349, line 350

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 3.
   globalScope is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) imports.Count is equal to 1.
   imports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) imports[0].ImportedNamespace.ToString() is equal to "x.y.z".
   imports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) nsd is not null.
   nsd is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) zUse is not null.
   zUse is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) zUse.Name is equal to "z".
   zUse is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(8) zUse.FindMatches().First() and nsd are same.
   zUse is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

92.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetImports_NestedImportNamespace

Code with line numbers

This unit test case method tests get imports nested import namespace .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 374)
This focal method is related to assertions at line 376, line 378, line 379, line 380
(2) var baz = globalScope.GetDescendants().FirstOrDefault();(@line 382)
This focal method is related to assertions at line 383, line 385, line 386, line 387

This unit test case validates that:
(1) foo is not null.
   foo is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) imports.Count is equal to 2.
   imports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) imports[0].ImportedNamespace.ToString() is equal to "bar.baz".
   imports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) imports[1].ImportedNamespace.ToString() is equal to "x.y.z".
   imports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) baz is not null.
   baz is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) bazUse is not null.
   bazUse is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) bazUse.Name is equal to "baz".
   bazUse is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(8) bazUse.FindMatches().First() and baz are same.
   bazUse is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

93.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetImports_SeparateFiles

Code with line numbers

This unit test case method tests get imports separate files .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 407)
This focal method is related to assertions at line 408, line 411, line 413, line 414, line 417, line 419, line 420

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 4.
   globalScope is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) fooImports.Count is equal to 1.
   fooImports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) fooImports[0].ImportedNamespace.ToString() is equal to "x.y.z".
   fooImports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) bar is not null.
   bar is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) barImports.Count is equal to 1.
   barImports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) barImports[0].ImportedNamespace.ToString() is equal to "a.b.howdy".
   barImports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

94.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAliases_NestedUsingAlias

Code with line numbers

This unit test case method tests get aliases nested using alias .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 448)
This focal method is related to assertions at line 450, line 452, line 453, line 454, line 456, line 457
(2) var baz = globalScope.GetDescendants().FirstOrDefault();(@line 459)
This focal method is related to assertions at line 460, line 462, line 463

This unit test case validates that:
(1) foo is not null.
   foo is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) aliases.Count is equal to 1.
   aliases is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) aliases[0].Target.ToString() is equal to "bar.baz".
   aliases is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) aliases[0].AliasName is equal to "x".
   aliases is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) imports.Count is equal to 1.
   imports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) imports[0].ImportedNamespace.ToString() is equal to "x.y.z".
   imports is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) baz is not null.
   baz is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(8) bazUse is not null.
   bazUse is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(9) bazUse.FindMatches().First() and baz are same.
   bazUse is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

95.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestImport_NameResolution

Code with line numbers

This unit test case method tests import name resolution .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 499)
This focal method is related to assertions at line 500
(2) var baz = globalScope.GetDescendants().FirstOrDefault();(@line 502)
This focal method is related to assertions at line 503
(3) var thingy = globalScope.GetDescendants().FirstOrDefault();(@line 505)
This focal method is related to assertions at line 506, line 508, line 509, line 513, line 514

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 3.
   globalScope is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) baz is not null.
   baz is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) thingy is not null.
   thingy is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) thingyTypes.Count is equal to 1.
   thingyTypes is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) thingyTypes[0] and baz are same.
   thingyTypes is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) bazCall is not null.
   bazCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) bazCall.FindMatches().FirstOrDefault() and bazDef are same.
   bazCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

96.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestAlias_NameResolution

Code with line numbers

This unit test case method tests alias name resolution .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 552)
This focal method is related to assertions at line 553
(2) var thingDef = globalScope.GetDescendants().FirstOrDefault();(@line 555)
This focal method is related to assertions at line 556, line 557
(3) var bDef = globalScope.GetDescendants().FirstOrDefault();(@line 559)
This focal method is related to assertions at line 560, line 561, line 563, line 564

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 3.
   globalScope is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) thingDef is not null.
   thingDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) TypeDefinition thingDef.ParentStatement.Name is equal to "Baz".
   thingDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) bDef is not null.
   bDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) bDef.ChildStatements.Count is equal to 1.
   bDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) thingCall is not null.
   thingCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) thingCall.FindMatches().First() and thingDef are same.
   thingCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

97.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestUsingBlock_SingleDecl

Code with line numbers

This unit test case method tests using block single decl .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 578)
This focal method is related to assertions at line 579, line 582, line 583, line 584, line 586, line 587, line 588, line 589

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.ChildStatements.Count is equal to 1.
   actual is obtained from
   1) variable xml through slicing path.

(4) actual.Initializer is not null.
   actual is obtained from
   1) variable xml through slicing path.

(5) decls.Count is equal to 1.
   decls is obtained from
   1) variable xml through slicing path.

(6) decls[0].Name is equal to "f".
   decls is obtained from
   1) variable xml through slicing path.

(7) decls[0].VariableType.Name is equal to "var".
   decls is obtained from
   1) variable xml through slicing path.

(8) decls[0].Initializer is not null.
   decls is obtained from
   1) variable xml through slicing path.

98.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestUsingBlock_MultipleDecl

Code with line numbers

This unit test case method tests using block multiple decl .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 599)
This focal method is related to assertions at line 600, line 603, line 604, line 605, line 607, line 608, line 609, line 610, line 611, line 612, line 613

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.ChildStatements.Count is equal to 1.
   actual is obtained from
   1) variable xml through slicing path.

(4) actual.Initializer is not null.
   actual is obtained from
   1) variable xml through slicing path.

(5) decls.Count is equal to 2.
   decls is obtained from
   1) variable xml through slicing path.

(6) decls[0].Name is equal to "a".
   decls is obtained from
   1) variable xml through slicing path.

(7) decls[0].VariableType.Name is equal to "Foo".
   decls is obtained from
   1) variable xml through slicing path.

(8) decls[0].Initializer is not null.
   decls is obtained from
   1) variable xml through slicing path.

(9) decls[1].Name is equal to "b".
   decls is obtained from
   1) variable xml through slicing path.

(10) decls[1].VariableType.Name is equal to "Foo".
   decls is obtained from
   1) variable xml through slicing path.

(11) decls[1].Initializer is not null.
   decls is obtained from
   1) variable xml through slicing path.

99.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestUsingBlock_Expression

Code with line numbers

This unit test case method tests using block expression .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 623)
This focal method is related to assertions at line 624, line 627, line 628, line 630, line 631, line 633, line 634, line 636, line 637, line 639, line 640, line 642, line 643, line 644

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.ChildStatements.Count is equal to 1.
   actual is obtained from
   1) variable xml through slicing path.

(4) actual.Initializer is not null.
   actual is obtained from
   1) variable xml through slicing path.

(5) init.Components.Count is equal to 4.
   init is obtained from
   1) variable xml through slicing path.

(6) bar is not null.
   bar is obtained from
   1) variable xml through slicing path.

(7) bar.Name is equal to "bar".
   bar is obtained from
   1) variable xml through slicing path.

(8) equals is not null.
   equals is obtained from
   1) variable xml through slicing path.

(9) equals.Text is equal to "=".
   equals is obtained from
   1) variable xml through slicing path.

(10) newOp is not null.
   newOp is obtained from
   1) variable xml through slicing path.

(11) newOp.Text is equal to "new".
   newOp is obtained from
   1) variable xml through slicing path.

(12) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(13) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable xml through slicing path.

(14) foo.Arguments.Count is equal to 0.
   foo is obtained from
   1) variable xml through slicing path.

100.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_Class

Code with line numbers

This unit test case method tests create type definition class .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(fooFileUnit);(@line 657)
This focal method is related to assertions at line 659, line 661, line 662, line 663, line 664, line 667, line 668, line 669, line 670

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable fooXml through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable fooXml through slicing path.

(3) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable fooXml through slicing path.

(4) foo.Kind is equal to TypeKind.Class.
   foo is obtained from
   1) variable fooXml through slicing path.

(5) foo.ChildStatements.Count() is equal to 1.
   foo is obtained from
   1) variable fooXml through slicing path.

(6) bar is not null.
   bar is obtained from
   1) variable fooXml through slicing path.

(7) bar.Name is equal to "bar".
   bar is obtained from
   1) variable fooXml through slicing path.

(8) bar.VariableType.Name is equal to "int".
   bar is obtained from
   1) variable fooXml through slicing path.

(9) bar.Accessibility is equal to AccessModifier.Public.
   bar is obtained from
   1) variable fooXml through slicing path.

101.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_ClassWithParent

Code with line numbers

This unit test case method tests create type definition class with parent.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(fooFileUnit);(@line 683)
This focal method is related to assertions at line 685, line 687, line 688, line 689, line 690, line 691, line 692

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable fooXml through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable fooXml through slicing path.

(3) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable fooXml through slicing path.

(4) foo.Kind is equal to TypeKind.Class.
   foo is obtained from
   1) variable fooXml through slicing path.

(5) foo.ChildStatements.Count() is equal to 1.
   foo is obtained from
   1) variable fooXml through slicing path.

(6) foo.ParentTypeNames.Count is equal to 1.
   foo is obtained from
   1) variable fooXml through slicing path.

(7) foo.ParentTypeNames.First().Name is equal to "Baz".
   foo is obtained from
   1) variable fooXml through slicing path.

102.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_ClassWithQualifiedParent

Code with line numbers

This unit test case method tests create type definition class with qualified parent.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(fooFileUnit);(@line 705)
This focal method is related to assertions at line 707, line 709, line 710, line 711, line 712, line 713, line 714, line 715, line 716

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable fooXml through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable fooXml through slicing path.

(3) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable fooXml through slicing path.

(4) foo.Kind is equal to TypeKind.Class.
   foo is obtained from
   1) variable fooXml through slicing path.

(5) foo.ChildStatements.Count() is equal to 1.
   foo is obtained from
   1) variable fooXml through slicing path.

(6) foo.ParentTypeNames.Count is equal to 2.
   foo is obtained from
   1) variable fooXml through slicing path.

(7) foo.ParentTypeNames[0].Name is equal to "Baz".
   foo is obtained from
   1) variable fooXml through slicing path.

(8) foo.ParentTypeNames[1].Name is equal to "IDisposable".
   foo is obtained from
   1) variable fooXml through slicing path.

(9) foo.ParentTypeNames[1].Prefix.Names.First().Name is equal to "System".
   foo is obtained from
   1) variable fooXml through slicing path.

103.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_CompoundNamespace

Code with line numbers

This unit test case method tests create type definition compound namespace .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(fooFileUnit);(@line 733)
This focal method is related to assertions at line 735, line 737, line 738, line 739, line 741, line 742, line 743, line 745, line 746, line 747, line 749, line 750, line 751

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable fooXml through slicing path.

(2) example is not null.
   example is obtained from
   1) variable fooXml through slicing path.

(3) example.Name is equal to "Example".
   example is obtained from
   1) variable fooXml through slicing path.

(4) example.ChildStatements.Count() is equal to 1.
   example is obtained from
   1) variable fooXml through slicing path.

(5) level2 is not null.
   level2 is obtained from
   1) variable fooXml through slicing path.

(6) level2.Name is equal to "Level2".
   level2 is obtained from
   1) variable fooXml through slicing path.

(7) level2.ChildStatements.Count() is equal to 1.
   level2 is obtained from
   1) variable fooXml through slicing path.

(8) level3 is not null.
   level3 is obtained from
   1) variable fooXml through slicing path.

(9) level3.Name is equal to "Level3".
   level3 is obtained from
   1) variable fooXml through slicing path.

(10) level3.ChildStatements.Count() is equal to 1.
   level3 is obtained from
   1) variable fooXml through slicing path.

(11) foo is not null.
   foo is obtained from
   1) variable fooXml through slicing path.

(12) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable fooXml through slicing path.

(13) foo.ChildStatements.Count() is equal to 1.
   foo is obtained from
   1) variable fooXml through slicing path.

104.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_Interface

Code with line numbers

This unit test case method tests create type definition interface .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(fooFileUnit);(@line 764)
This focal method is related to assertions at line 766, line 768, line 769, line 770, line 771

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable fooXml through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable fooXml through slicing path.

(3) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable fooXml through slicing path.

(4) foo.Kind is equal to TypeKind.Interface.
   foo is obtained from
   1) variable fooXml through slicing path.

(5) foo.ChildStatements.Count() is equal to 1.
   foo is obtained from
   1) variable fooXml through slicing path.

105.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_Namespace

Code with line numbers

This unit test case method tests create type definition namespace .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(fooFileUnit);(@line 788)
This focal method is related to assertions at line 790, line 792, line 793, line 794, line 796, line 797, line 798

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable fooXml through slicing path.

(2) example is not null.
   example is obtained from
   1) variable fooXml through slicing path.

(3) example.Name is equal to "Example".
   example is obtained from
   1) variable fooXml through slicing path.

(4) example.ChildStatements.Count() is equal to 1.
   example is obtained from
   1) variable fooXml through slicing path.

(5) foo is not null.
   foo is obtained from
   1) variable fooXml through slicing path.

(6) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable fooXml through slicing path.

(7) foo.ChildStatements.Count() is equal to 1.
   foo is obtained from
   1) variable fooXml through slicing path.

106.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_NestedCompoundNamespace

Code with line numbers

This unit test case method tests create type definition nested compound namespace .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(fooFileUnit);(@line 819)
This focal method is related to assertions at line 821, line 823, line 824, line 825, line 827, line 828, line 829, line 831, line 832, line 833, line 835, line 836, line 837, line 839, line 840, line 841

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable fooXml through slicing path.

(2) watermelon is not null.
   watermelon is obtained from
   1) variable fooXml through slicing path.

(3) watermelon.Name is equal to "Watermelon".
   watermelon is obtained from
   1) variable fooXml through slicing path.

(4) watermelon.ChildStatements.Count() is equal to 1.
   watermelon is obtained from
   1) variable fooXml through slicing path.

(5) example is not null.
   example is obtained from
   1) variable fooXml through slicing path.

(6) example.Name is equal to "Example".
   example is obtained from
   1) variable fooXml through slicing path.

(7) example.ChildStatements.Count() is equal to 1.
   example is obtained from
   1) variable fooXml through slicing path.

(8) level2 is not null.
   level2 is obtained from
   1) variable fooXml through slicing path.

(9) level2.Name is equal to "Level2".
   level2 is obtained from
   1) variable fooXml through slicing path.

(10) level2.ChildStatements.Count() is equal to 1.
   level2 is obtained from
   1) variable fooXml through slicing path.

(11) level3 is not null.
   level3 is obtained from
   1) variable fooXml through slicing path.

(12) level3.Name is equal to "Level3".
   level3 is obtained from
   1) variable fooXml through slicing path.

(13) level3.ChildStatements.Count() is equal to 1.
   level3 is obtained from
   1) variable fooXml through slicing path.

(14) foo is not null.
   foo is obtained from
   1) variable fooXml through slicing path.

(15) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable fooXml through slicing path.

(16) foo.ChildStatements.Count() is equal to 1.
   foo is obtained from
   1) variable fooXml through slicing path.

107.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinition_Struct

Code with line numbers

This unit test case method tests create type definition struct .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(fooFileUnit);(@line 854)
This focal method is related to assertions at line 856, line 858, line 859, line 860, line 861

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable fooXml through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable fooXml through slicing path.

(3) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable fooXml through slicing path.

(4) foo.Kind is equal to TypeKind.Struct.
   foo is obtained from
   1) variable fooXml through slicing path.

(5) foo.ChildStatements.Count() is equal to 1.
   foo is obtained from
   1) variable fooXml through slicing path.

108.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinitions_ClassWithInnerClass

Code with line numbers

This unit test case method tests create type definitions class with inner class.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 874)
This focal method is related to assertions at line 876, line 878, line 879, line 881, line 883
(2) An assertion in line 884 validating that typeA.GetFullName() is equal to "A".
(3) An assertion in line 885 validating that typeB.GetFullName() is equal to "A.B".

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) typeA is not null.
   typeA is obtained from
   1) variable xml through slicing path.

(3) typeA.ChildStatements.Count() is equal to 1.
   typeA is obtained from
   1) variable xml through slicing path.

(4) typeB is not null.
   typeB is obtained from
   1) variable xml through slicing path.

(5) typeB.ParentStatement and typeA are same.
   typeB is obtained from
   1) variable xml through slicing path.

109.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCreateTypeDefinitions_InnerClassWithNamespace

Code with line numbers

This unit test case method tests create type definitions inner class with namespace.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 902)
This focal method is related to assertions at line 904, line 906, line 907, line 909, line 910, line 912, line 914
(2) An assertion in line 915 validating that typeA.GetAncestors().First().GetFullName() is equal to "Foo".
(3) An assertion in line 916 validating that typeA.GetFullName() is equal to "Foo.A".
(4) An assertion in line 919 validating that typeB.GetAncestors().First().GetFullName() is equal to "Foo".
(5) An assertion in line 920 validating that typeB.GetFullName() is equal to "Foo.A.B".

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(3) foo.ChildStatements.Count() is equal to 1.
   foo is obtained from
   1) variable xml through slicing path.

(4) typeA is not null.
   typeA is obtained from
   1) variable xml through slicing path.

(5) typeA.ChildStatements.Count() is equal to 1.
   typeA is obtained from
   1) variable xml through slicing path.

(6) typeB is not null.
   typeB is obtained from
   1) variable xml through slicing path.

(7) typeA.Name is equal to "A".
   typeA is obtained from
   1) variable xml through slicing path.

(8) typeB.Name is equal to "B".
   typeB is obtained from
   1) variable xml through slicing path.

110.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestDeclarationWithTypeVarFromConstructor

Code with line numbers

This unit test case method tests declaration with type var from constructor.

This unit test case includes following focal methods:
(1) var typeB = globalScope.GetDescendants().FirstOrDefault();(@line 936)
This focal method is related to assertions at line 937

This unit test case validates that:
(1) typeB is not null.
   typeB is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(2) is not null.

(3) . ChildStatements.Count is equal to 1.

(4) varDecl is not null.

(5) varDecl.ResolveType().FirstOrDefault() and typeB are same.

111.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestDeclarationWithTypeVarFromImplicitConstructor

Code with line numbers

This unit test case method tests declaration with type var from implicit constructor.

This unit test case includes following focal methods:
(1) var typeB = globalScope.GetDescendants().FirstOrDefault();(@line 961)
This focal method is related to assertions at line 962

This unit test case validates that:
(1) typeB is not null.
   typeB is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(2) is not null.

(3) . ChildStatements.Count is equal to 1.

(4) varDecl is not null.

(5) varDecl.ResolveType().FirstOrDefault() and typeB are same.

112.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestDeclarationWithTypeVarFromMethod

Code with line numbers

This unit test case method tests declaration with type var from method.

This unit test case includes following focal methods:
(1) var typeB = globalScope.GetDescendants().FirstOrDefault();(@line 990)
This focal method is related to assertions at line 991
(2) var mainMethod = globalScope.GetDescendants().FirstOrDefault();(@line 992)
This focal method is related to assertions at line 993, line 995, line 997, line 999

This unit test case validates that:
(1) typeB is not null.
   typeB is obtained from
   1) variable xml through slicing path.

(2) mainMethod is not null.
   mainMethod is obtained from
   1) variable xml through slicing path.

(3) mainMethod.ChildStatements.Count is equal to 1.
   mainMethod is obtained from
   1) variable xml through slicing path.

(4) varDecl is not null.
   varDecl is obtained from
   1) variable xml through slicing path.

(5) varDecl.ResolveType().FirstOrDefault() and typeB are same.
   varDecl is obtained from
   1) variable xml through slicing path.

113.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestDeclarationWithTypeVarInForeach

Code with line numbers

This unit test case method tests declaration with type var in foreach.

This unit test case includes following focal methods:
(1) var loop = globalScope.GetDescendants().First();(@line 1027)
This focal method is related to assertions at line 1029, line 1031

This unit test case validates that:
(1) varDecl is not null.
   varDecl is obtained from
   1) variable xml through slicing path.

(2) varDecl.ResolveType().FirstOrDefault() and BuiltInTypeFactory.GetBuiltIn(new TypeUse()) are same.
   varDecl is obtained from
   1) variable xml through slicing path.

114.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestFieldCreation

Code with line numbers

This unit test case method tests field creation .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 1044)
This focal method is related to assertions at line 1046, line 1048, line 1049, line 1051, line 1052, line 1053, line 1054

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) typeA is not null.
   typeA is obtained from
   1) variable xml through slicing path.

(3) typeA.ChildStatements.Count() is equal to 1.
   typeA is obtained from
   1) variable xml through slicing path.

(4) foo is not null.
   foo is obtained from
   1) variable xml through slicing path.

(5) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable xml through slicing path.

(6) foo.VariableType.Name is equal to "int".
   foo is obtained from
   1) variable xml through slicing path.

(7) foo.Accessibility is equal to AccessModifier.Public.
   foo is obtained from
   1) variable xml through slicing path.

115.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestFindParentType

Code with line numbers

This unit test case method tests find parent type .

This unit test case includes following focal methods:
(1) var typeB = globalScope.GetDescendants().FirstOrDefault();(@line 1073)
This focal method is related to assertions at line 1074
(2) var typeC = globalScope.GetDescendants().FirstOrDefault();(@line 1075)
This focal method is related to assertions at line 1076, line 1078, line 1079

This unit test case validates that:
(1) typeB is not null.
   typeB is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(2) typeC is not null.
   typeC is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(3) typeB.ParentTypeNames.Count is equal to 1.
   typeB is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(4) typeB.ParentTypeNames[0].ResolveType().FirstOrDefault() and typeC are same.
   typeB is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

116.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestFindQualifiedParentType

Code with line numbers

This unit test case method tests find qualified parent type .

This unit test case includes following focal methods:
(1) var typeB = globalScope.GetDescendants().FirstOrDefault();(@line 1098)
This focal method is related to assertions at line 1099
(2) var typeD = globalScope.GetDescendants().FirstOrDefault();(@line 1100)
This focal method is related to assertions at line 1101, line 1103, line 1104

This unit test case validates that:
(1) typeB is not null.
   typeB is obtained from
   1) variable bXml through slicing path
   2) variable dXml through slicing path.

(2) typeD is not null.
   typeD is obtained from
   1) variable bXml through slicing path
   2) variable dXml through slicing path.

(3) typeB.ParentTypeNames.Count is equal to 1.
   typeB is obtained from
   1) variable bXml through slicing path
   2) variable dXml through slicing path.

(4) typeB.ParentTypeNames[0].ResolveType().FirstOrDefault() and typeD are same.
   typeB is obtained from
   1) variable bXml through slicing path
   2) variable dXml through slicing path.

117.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGenericType

Code with line numbers

This unit test case method tests generic type .

This unit test case includes following focal methods:
(1) var typeB = scope.GetDescendants().FirstOrDefault();(@line 1115)
This focal method is related to assertions at line 1116, line 1117

This unit test case validates that:
(1) typeB is not null.
   typeB is obtained from
   1) variable xml through slicing path.

(2) typeB.Name is equal to "B".
   typeB is obtained from
   1) variable xml through slicing path.

118.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGenericVariableDeclaration

Code with line numbers

This unit test case method tests generic variable declaration .

This unit test case includes following focal methods:
(1) var testScope = codeParser.ParseFileUnit(testUnit);(@line 1127)
This focal method is related to assertions at line 1130, line 1131, line 1132, line 1133, line 1134, line 1135, line 1136

This unit test case validates that:
(1) testDeclaration is not null.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(2) testDeclaration.Name is equal to "map".
   testDeclaration is obtained from
   1) variable xml through slicing path.

(3) testDeclaration.VariableType.Name is equal to "Dictionary".
   testDeclaration is obtained from
   1) variable xml through slicing path.

(4) testDeclaration.VariableType.IsGeneric is true.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(5) testDeclaration.VariableType.TypeParameters.Count is equal to 2.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(6) testDeclaration.VariableType.TypeParameters.First().Name is equal to "string".
   testDeclaration is obtained from
   1) variable xml through slicing path.

(7) testDeclaration.VariableType.TypeParameters.Last().Name is equal to "int".
   testDeclaration is obtained from
   1) variable xml through slicing path.

119.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGenericVariableDeclarationWithPrefix

Code with line numbers

This unit test case method tests generic variable declaration with prefix.

This unit test case includes following focal methods:
(1) var testScope = codeParser.ParseFileUnit(testUnit);(@line 1146)
This focal method is related to assertions at line 1149, line 1150, line 1151, line 1153, line 1154, line 1155, line 1156, line 1157, line 1158, line 1159

This unit test case validates that:
(1) testDeclaration is not null.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(2) testDeclaration.Name is equal to "map".
   testDeclaration is obtained from
   1) variable xml through slicing path.

(3) testDeclaration.VariableType.Name is equal to "Dictionary".
   testDeclaration is obtained from
   1) variable xml through slicing path.

(4) prefixNames.Count is equal to 2.
   prefixNames is obtained from
   1) variable xml through slicing path.

(5) prefixNames[0].Name is equal to "System".
   prefixNames is obtained from
   1) variable xml through slicing path.

(6) prefixNames[1].Name is equal to "Collection".
   prefixNames is obtained from
   1) variable xml through slicing path.

(7) testDeclaration.VariableType.IsGeneric is true.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(8) testDeclaration.VariableType.TypeParameters.Count is equal to 2.
   testDeclaration is obtained from
   1) variable xml through slicing path.

(9) testDeclaration.VariableType.TypeParameters.First().Name is equal to "string".
   testDeclaration is obtained from
   1) variable xml through slicing path.

(10) testDeclaration.VariableType.TypeParameters.Last().Name is equal to "int".
   testDeclaration is obtained from
   1) variable xml through slicing path.

120.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForMethod_InternalProtected

Code with line numbers

This unit test case method tests get access modifier for method internal protected.

This unit test case includes following focal methods:
(1) var method = globalScope.GetDescendants().First();(@line 1177)
This focal method is related to assertions at line 1179

This unit test case validates that:
(1) method.Accessibility is equal to AccessModifier.ProtectedInternal.
   method is obtained from
   1) variable xml through slicing path.

121.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForMethod_None

Code with line numbers

This unit test case method tests get access modifier for method none.

This unit test case includes following focal methods:
(1) var method = globalScope.GetDescendants().First();(@line 1197)
This focal method is related to assertions at line 1199

This unit test case validates that:
(1) method.Accessibility is equal to AccessModifier.None.
   method is obtained from
   1) variable xml through slicing path.

122.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForMethod_Normal

Code with line numbers

This unit test case method tests get access modifier for method normal.

This unit test case includes following focal methods:
(1) var method = globalScope.GetDescendants().First();(@line 1217)
This focal method is related to assertions at line 1219

This unit test case validates that:
(1) method.Accessibility is equal to AccessModifier.Public.
   method is obtained from
   1) variable xml through slicing path.

123.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForMethod_ProtectedInternal

Code with line numbers

This unit test case method tests get access modifier for method protected internal.

This unit test case includes following focal methods:
(1) var method = globalScope.GetDescendants().First();(@line 1237)
This focal method is related to assertions at line 1239

This unit test case validates that:
(1) method.Accessibility is equal to AccessModifier.ProtectedInternal.
   method is obtained from
   1) variable xml through slicing path.

124.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForMethod_ProtectedInternalStatic

Code with line numbers

This unit test case method tests get access modifier for method protected internal static.

This unit test case includes following focal methods:
(1) var method = globalScope.GetDescendants().First();(@line 1257)
This focal method is related to assertions at line 1259

This unit test case validates that:
(1) method.Accessibility is equal to AccessModifier.ProtectedInternal.
   method is obtained from
   1) variable xml through slicing path.

125.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForType_InternalProtected

Code with line numbers

This unit test case method tests get access modifier for type internal protected.

This unit test case includes following focal methods:
(1) var type = globalScope.GetDescendants().First();(@line 1273)
This focal method is related to assertions at line 1275

This unit test case validates that:
(1) type.Accessibility is equal to AccessModifier.ProtectedInternal.
   type is obtained from
   1) variable xml through slicing path.

126.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForType_None

Code with line numbers

This unit test case method tests get access modifier for type none.

This unit test case includes following focal methods:
(1) var type = globalScope.GetDescendants().First();(@line 1289)
This focal method is related to assertions at line 1291

This unit test case validates that:
(1) type.Accessibility is equal to AccessModifier.None.
   type is obtained from
   1) variable xml through slicing path.

127.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForType_Normal

Code with line numbers

This unit test case method tests get access modifier for type normal.

This unit test case includes following focal methods:
(1) var type = globalScope.GetDescendants().First();(@line 1305)
This focal method is related to assertions at line 1307

This unit test case validates that:
(1) type.Accessibility is equal to AccessModifier.Public.
   type is obtained from
   1) variable xml through slicing path.

128.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForType_ProtectedInternal

Code with line numbers

This unit test case method tests get access modifier for type protected internal.

This unit test case includes following focal methods:
(1) var type = globalScope.GetDescendants().First();(@line 1321)
This focal method is related to assertions at line 1323

This unit test case validates that:
(1) type.Accessibility is equal to AccessModifier.ProtectedInternal.
   type is obtained from
   1) variable xml through slicing path.

129.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestGetAccessModifierForType_ProtectedInternalStatic

Code with line numbers

This unit test case method tests get access modifier for type protected internal static.

This unit test case includes following focal methods:
(1) var type = globalScope.GetDescendants().First();(@line 1337)
This focal method is related to assertions at line 1339

This unit test case validates that:
(1) type.Accessibility is equal to AccessModifier.ProtectedInternal.
   type is obtained from
   1) variable xml through slicing path.

130.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestMethodCallWithBaseKeyword

Code with line numbers

This unit test case method tests method call with base keyword.

This unit test case includes following focal methods:
(1) var fooMethods = globalScope.GetDescendants().ToList();(@line 1356)
This focal method is related to assertions at line 1359, line 1361, line 1363, line 1365, line 1366

This unit test case validates that:
(1) bDotFoo is not null.
   bDotFoo is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(2) cDotFoo is not null.
   cDotFoo is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(3) cDotFoo.ChildStatements.Count is equal to 1.
   cDotFoo is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(4) methodCall is not null.
   methodCall is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(5) methodCall.FindMatches().FirstOrDefault() and bDotFoo are same.
   methodCall is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

131.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestMethodDefinitionWithReturnType

Code with line numbers

This unit test case method tests method definition with return type.

This unit test case includes following focal methods:
(1) var method = testScope.GetDescendants().FirstOrDefault();(@line 1378)
This focal method is related to assertions at line 1379, line 1381

This unit test case validates that:
(1) method is not null.
   method is obtained from
   1) variable xml through slicing path.

(2) method.ReturnType.Name is equal to "int".
   method is obtained from
   1) variable xml through slicing path.

132.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestMethodDefinitionWithReturnTypeAndWithSpecifier

Code with line numbers

This unit test case method tests method definition with return type and with specifier.

This unit test case includes following focal methods:
(1) var method = testScope.GetDescendants().FirstOrDefault();(@line 1393)
This focal method is related to assertions at line 1394, line 1396

This unit test case validates that:
(1) method is not null.
   method is obtained from
   1) variable xml through slicing path.

(2) method.ReturnType.Name is equal to "int".
   method is obtained from
   1) variable xml through slicing path.

133.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestMethodDefinitionWithVoidReturn

Code with line numbers

This unit test case method tests method definition with void return.

This unit test case includes following focal methods:
(1) var method = testScope.GetDescendants().FirstOrDefault();(@line 1408)
This focal method is related to assertions at line 1409, line 1411

This unit test case validates that:
(1) method is not null.
   method is obtained from
   1) variable xml through slicing path.

(2) method.ReturnType is null.
   method is obtained from
   1) variable xml through slicing path.

134.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestProperty

Code with line numbers

This unit test case method tests property .

This unit test case includes following focal methods:
(1) var classB = testScope.GetDescendants().FirstOrDefault();(@line 1423)
This focal method is related to assertions at line 1425, line 1426, line 1429, line 1430, line 1431, line 1432, line 1433, line 1434

This unit test case validates that:
(1) classB is not null.
   classB is obtained from
   1) variable xml through slicing path.

(2) classB.ChildStatements.Count() is equal to 1.
   classB is obtained from
   1) variable xml through slicing path.

(3) fooProperty is not null.
   fooProperty is obtained from
   1) variable xml through slicing path.

(4) fooProperty.Name is equal to "Foo".
   fooProperty is obtained from
   1) variable xml through slicing path.

(5) fooProperty.ReturnType.Name is equal to "int".
   fooProperty is obtained from
   1) variable xml through slicing path.

(6) fooProperty.Accessibility is equal to AccessModifier.None.
   fooProperty is obtained from
   1) variable xml through slicing path.

(7) fooProperty.Getter is not null.
   fooProperty is obtained from
   1) variable xml through slicing path.

(8) fooProperty.Setter is not null.
   fooProperty is obtained from
   1) variable xml through slicing path.

135.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestPropertyAsCallingObject

Code with line numbers

This unit test case method tests property as calling object.

This unit test case includes following focal methods:
(1) var classB = globalScope.GetDescendants().FirstOrDefault();(@line 1477)
This focal method is related to assertions at line 1478
(2) var classC = globalScope.GetDescendants().FirstOrDefault();(@line 1479)
This focal method is related to assertions at line 1480, line 1484, line 1485, line 1487, line 1489, line 1490

This unit test case validates that:
(1) classB is not null.
   classB is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(2) classC is not null.
   classC is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(3) mainMethod is not null.
   mainMethod is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(4) barMethod is not null.
   barMethod is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(5) mainMethod.ChildStatements.Count is equal to 2.
   mainMethod is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(6) callToBar is not null.
   callToBar is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(7) callToBar.FindMatches().FirstOrDefault() and barMethod are same.
   callToBar is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

136.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestStaticMethodCall

Code with line numbers

This unit test case method tests static method call .

This unit test case includes following focal methods:
(1) var barMethod = globalScope.GetDescendants().FirstOrDefault();(@line 1509)
This focal method is related to assertions at line 1510, line 1511, line 1513, line 1515, line 1516

This unit test case validates that:
(1) fooMethod is not null.
   fooMethod is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(2) barMethod is not null.
   barMethod is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(3) fooMethod.ChildStatements.Count is equal to 1.
   fooMethod is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(4) callToBar is not null.
   callToBar is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

(5) callToBar.FindMatches().FirstOrDefault() and barMethod are same.
   callToBar is obtained from
   1) variable bXml through slicing path
   2) variable cXml through slicing path.

137.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestStaticMethodCallInDifferentNamespace

Code with line numbers

This unit test case method tests static method call in different namespace.

This unit test case includes following focal methods:
(1) var barMethod = globalScope.GetDescendants().FirstOrDefault();(@line 1535)
This focal method is related to assertions at line 1536, line 1537, line 1539, line 1541, line 1542

This unit test case validates that:
(1) fooMethod is not null.
   fooMethod is obtained from
   1) variable bXml through slicing path
   2) variable dXml through slicing path.

(2) barMethod is not null.
   barMethod is obtained from
   1) variable bXml through slicing path
   2) variable dXml through slicing path.

(3) fooMethod.ChildStatements.Count is equal to 1.
   fooMethod is obtained from
   1) variable bXml through slicing path
   2) variable dXml through slicing path.

(4) callToBar is not null.
   callToBar is obtained from
   1) variable bXml through slicing path
   2) variable dXml through slicing path.

(5) callToBar.FindMatches().FirstOrDefault() and barMethod are same.
   callToBar is obtained from
   1) variable bXml through slicing path
   2) variable dXml through slicing path.

138.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestVariablesWithSpecifiers

Code with line numbers

This unit test case method tests variables with specifiers.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(testUnit);(@line 1557)
This focal method is related to assertions at line 1558, line 1561, line 1562, line 1563, line 1564, line 1567, line 1568, line 1569, line 1570, line 1573, line 1574, line 1575, line 1576, line 1579, line 1580, line 1581, line 1582

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 4.
   globalScope is obtained from
   1) variable testXml through slicing path.

(2) declA is not null.
   declA is obtained from
   1) variable testXml through slicing path.

(3) declA.Name is equal to "A".
   declA is obtained from
   1) variable testXml through slicing path.

(4) declA.VariableType.Name is equal to "int".
   declA is obtained from
   1) variable testXml through slicing path.

(5) declA.Accessibility is equal to AccessModifier.None.
   declA is obtained from
   1) variable testXml through slicing path.

(6) declB is not null.
   declB is obtained from
   1) variable testXml through slicing path.

(7) declB.Name is equal to "B".
   declB is obtained from
   1) variable testXml through slicing path.

(8) declB.VariableType.Name is equal to "int".
   declB is obtained from
   1) variable testXml through slicing path.

(9) declB.Accessibility is equal to AccessModifier.Public.
   declB is obtained from
   1) variable testXml through slicing path.

(10) declC is not null.
   declC is obtained from
   1) variable testXml through slicing path.

(11) declC.Name is equal to "C".
   declC is obtained from
   1) variable testXml through slicing path.

(12) declC.VariableType.Name is equal to "Foo".
   declC is obtained from
   1) variable testXml through slicing path.

(13) declC.Accessibility is equal to AccessModifier.Public.
   declC is obtained from
   1) variable testXml through slicing path.

(14) declD is not null.
   declD is obtained from
   1) variable testXml through slicing path.

(15) declD.Name is equal to "D".
   declD is obtained from
   1) variable testXml through slicing path.

(16) declD.VariableType.Name is equal to "int".
   declD is obtained from
   1) variable testXml through slicing path.

(17) declD.Accessibility is equal to AccessModifier.None.
   declD is obtained from
   1) variable testXml through slicing path.

139.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestStaticInstanceVariable

Code with line numbers

This unit test case method tests static instance variable .

This unit test case includes following focal methods:
(1) var methodBar = globalScope.GetDescendants().FirstOrDefault();(@line 1607)
This focal method is related to assertions at line 1608
(2) var methodFoo = globalScope.GetDescendants().FirstOrDefault();(@line 1609)
This focal method is related to assertions at line 1610, line 1612, line 1614, line 1615

This unit test case validates that:
(1) methodBar is not null.
   methodBar is obtained from
   1) variable xml through slicing path.

(2) methodFoo is not null.
   methodFoo is obtained from
   1) variable xml through slicing path.

(3) methodFoo.ChildStatements.Count is equal to 1.
   methodFoo is obtained from
   1) variable xml through slicing path.

(4) callToBar is not null.
   callToBar is obtained from
   1) variable xml through slicing path.

(5) callToBar.FindMatches().FirstOrDefault() and methodBar are same.
   callToBar is obtained from
   1) variable xml through slicing path.

140.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestStaticInstanceVariableInDifferentNamespace

Code with line numbers

This unit test case method tests static instance variable in different namespace.

This unit test case includes following focal methods:
(1) var methodBar = globalScope.GetDescendants().FirstOrDefault();(@line 1652)
This focal method is related to assertions at line 1653
(2) var methodFoo = globalScope.GetDescendants().FirstOrDefault();(@line 1654)
This focal method is related to assertions at line 1655, line 1657, line 1659, line 1660

This unit test case validates that:
(1) methodBar is not null.
   methodBar is obtained from
   1) variable aXml through slicing path
   2) variable cXml through slicing path.

(2) methodFoo is not null.
   methodFoo is obtained from
   1) variable aXml through slicing path
   2) variable cXml through slicing path.

(3) methodFoo.ChildStatements.Count is equal to 1.
   methodFoo is obtained from
   1) variable aXml through slicing path
   2) variable cXml through slicing path.

(4) callToBar is not null.
   callToBar is obtained from
   1) variable aXml through slicing path
   2) variable cXml through slicing path.

(5) callToBar.FindMatches().FirstOrDefault() and methodBar are same.
   callToBar is obtained from
   1) variable aXml through slicing path
   2) variable cXml through slicing path.

141.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallAsCallingObject

Code with line numbers

This unit test case method tests call as calling object.

This unit test case includes following focal methods:
(1) var barMethod = globalScope.GetDescendants().FirstOrDefault();(@line 1697)
This focal method is related to assertions at line 1698, line 1699, line 1700, line 1702, line 1705, line 1706, line 1708, line 1709

This unit test case validates that:
(1) mainMethod is not null.
   mainMethod is obtained from
   1) variable xml through slicing path.

(2) fooMethod is not null.
   fooMethod is obtained from
   1) variable xml through slicing path.

(3) barMethod is not null.
   barMethod is obtained from
   1) variable xml through slicing path.

(4) mainMethod.ChildStatements.Count is equal to 1.
   mainMethod is obtained from
   1) variable xml through slicing path.

(5) callToFoo is not null.
   callToFoo is obtained from
   1) variable xml through slicing path.

(6) callToBar is not null.
   callToBar is obtained from
   1) variable xml through slicing path.

(7) callToFoo.FindMatches().FirstOrDefault() and fooMethod are same.
   callToFoo is obtained from
   1) variable xml through slicing path.

(8) callToBar.FindMatches().FirstOrDefault() and barMethod are same.
   callToBar is obtained from
   1) variable xml through slicing path.

142.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestResolveVariable_Field

Code with line numbers

This unit test case method tests resolve variable field .

This unit test case includes following focal methods:
(1) var aConstructor = globalScope.GetDescendants().First();(@line 1730)
This focal method is related to assertions at line 1731, line 1733, line 1734

This unit test case validates that:
(1) aConstructor.ChildStatements.Count is equal to 1.
   aConstructor is obtained from
   1) variable xml through slicing path.

(2) fooUse is not null.
   fooUse is obtained from
   1) variable xml through slicing path.

(3) fooUse.FindMatches().FirstOrDefault() and fooDecl are same.
   fooUse is obtained from
   1) variable xml through slicing path.

143.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestResolveVariable_FieldInParent

Code with line numbers

This unit test case method tests resolve variable field in parent.

This unit test case includes following focal methods:
(1) var aConstructor = globalScope.GetDescendants().First();(@line 1759)
This focal method is related to assertions at line 1760, line 1762, line 1763

This unit test case validates that:
(1) aConstructor.ChildStatements.Count is equal to 1.
   aConstructor is obtained from
   1) variable xml through slicing path.

(2) fooUse is not null.
   fooUse is obtained from
   1) variable xml through slicing path.

(3) fooUse.FindMatches().FirstOrDefault() and fooDecl are same.
   fooUse is obtained from
   1) variable xml through slicing path.

144.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestCallingVariableDeclaredInParentClass

Code with line numbers

This unit test case method tests calling variable declared in parent class.

This unit test case includes following focal methods:
(1) var typeC = globalScope.GetNamedChildren("C").FirstOrDefault();(@line 1787)
This focal method is related to assertions at line 1789, line 1790, line 1791, line 1794, line 1797, line 1800, line 1801, line 1803

This unit test case validates that:
(1) typeA is not null.
   typeA is obtained from
   1) variable a_xml through slicing path.

(2) typeB is not null.
   typeB is obtained from
   1) variable a_xml through slicing path.

(3) typeC is not null.
   typeC is obtained from
   1) variable a_xml through slicing path.

(4) aDotFoo is not null.
   aDotFoo is obtained from
   1) variable a_xml through slicing path.

(5) cDotBar is not null.
   cDotBar is obtained from
   1) variable a_xml through slicing path.

(6) callToFoo is not null.
   callToFoo is obtained from
   1) variable a_xml through slicing path.

(7) callToFoo.Name is equal to "Foo".
   callToFoo is obtained from
   1) variable a_xml through slicing path.

(8) callToFoo.FindMatches().FirstOrDefault() is equal to aDotFoo.
   callToFoo is obtained from
   1) variable a_xml through slicing path.

145.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestVariableDeclaredInCallingObjectWithParentClass

Code with line numbers

This unit test case method tests variable declared in calling object with parent class.

This unit test case includes following focal methods:
(1) var typeD = globalScope.GetNamedChildren("D").FirstOrDefault();(@line 1839)
This focal method is related to assertions at line 1841, line 1842, line 1843, line 1844, line 1847, line 1848, line 1851, line 1854, line 1857, line 1859

This unit test case validates that:
(1) typeA is not null.
   typeA is obtained from
   1) variable a_xml through slicing path.

(2) typeB is not null.
   typeB is obtained from
   1) variable a_xml through slicing path.

(3) typeC is not null.
   typeC is obtained from
   1) variable a_xml through slicing path.

(4) typeD is not null.
   typeD is obtained from
   1) variable a_xml through slicing path.

(5) adotB is not null.
   adotB is obtained from
   1) variable a_xml through slicing path.

(6) adotB.Name is equal to "b".
   adotB is obtained from
   1) variable a_xml through slicing path.

(7) bDotFoo is not null.
   bDotFoo is obtained from
   1) variable a_xml through slicing path.

(8) dDotBar is not null.
   dDotBar is obtained from
   1) variable a_xml through slicing path.

(9) callToFoo is not null.
   callToFoo is obtained from
   1) variable a_xml through slicing path.

(10) callToFoo.FindMatches().FirstOrDefault() is equal to bDotFoo.
   callToFoo is obtained from
   1) variable a_xml through slicing path.

146.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestResolveArrayVariable_Property

Code with line numbers

This unit test case method tests resolve array variable property .

This unit test case includes following focal methods:
(1) var paramDecl = globalScope.GetDescendants().First();(@line 1879)
This focal method is related to assertions at line 1880
(2) var doWork = globalScope.GetDescendants().First();(@line 1881)
This focal method is related to assertions at line 1882, line 1884, line 1885

This unit test case validates that:
(1) paramDecl is not null.
   paramDecl is obtained from
   1) variable xml through slicing path.

(2) doWork.ChildStatements.Count is equal to 1.
   doWork is obtained from
   1) variable xml through slicing path.

(3) paramUse is not null.
   paramUse is obtained from
   1) variable xml through slicing path.

(4) paramUse.FindMatches().FirstOrDefault() and paramDecl are same.
   paramUse is obtained from
   1) variable xml through slicing path.

147.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestTypeUseForOtherNamespace

Code with line numbers

This unit test case method tests type use for other namespace.

This unit test case includes following focal methods:
(1) var typeE = globalScope.GetDescendants().Where().FirstOrDefault();(@line 1927)
This focal method is related to assertions at line 1930, line 1931, line 1934, line 1935
(2) var cDeclaration = mainMethod.FindExpressions(true).FirstOrDefault();(@line 1937)
This focal method is related to assertions at line 1938, line 1939
(3) var callToFoo = mainMethod.FindExpressions(true).Last();(@line 1942)
This focal method is related to assertions at line 1944, line 1945, line 1946, line 1948, line 1949

This unit test case validates that:
(1) mainMethod is not null.
   mainMethod is obtained from
   1) variable c_xml through slicing path.

(2) mainMethod.Name is equal to "main".
   mainMethod is obtained from
   1) variable c_xml through slicing path.

(3) fooMethod is not null.
   fooMethod is obtained from
   1) variable c_xml through slicing path.

(4) fooMethod.Name is equal to "Foo".
   fooMethod is obtained from
   1) variable c_xml through slicing path.

(5) cDeclaration is not null.
   cDeclaration is obtained from
   1) variable c_xml through slicing path.

(6) cDeclaration.VariableType.ResolveType().FirstOrDefault() and typeC are same.
   cDeclaration is obtained from
   1) variable c_xml through slicing path.

(7) callToCConstructor.Name is equal to "C".
   callToCConstructor is obtained from
   1) variable c_xml through slicing path.

(8) callToCConstructor.IsConstructor is true.
   callToCConstructor is obtained from
   1) variable c_xml through slicing path.

(9) callToCConstructor.FindMatches().FirstOrDefault() is null.
   callToCConstructor is obtained from
   1) variable c_xml through slicing path.

(10) callToFoo.Name is equal to "Foo".
   callToFoo is obtained from
   1) variable c_xml through slicing path.

(11) callToFoo.FindMatches().FirstOrDefault() and fooMethod are same.
   callToFoo is obtained from
   1) variable c_xml through slicing path.

148.  ABB.SrcML.Data.Test.CSharpCodeParserTests.TestLockStatement

Code with line numbers

This unit test case method tests lock statement .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 1961)
This focal method is related to assertions at line 1964, line 1965, line 1968, line 1969

This unit test case validates that:
(1) lockStmt is not null.
   lockStmt is obtained from
   1) variable xml through slicing path.

(2) lockStmt.ChildStatements.Count is equal to 1.
   lockStmt is obtained from
   1) variable xml through slicing path.

(3) lockVar is not null.
   lockVar is obtained from
   1) variable xml through slicing path.

(4) lockVar.Name is equal to "myVar".
   lockVar is obtained from
   1) variable xml through slicing path.

149.  ABB.SrcML.Data.Test.DataFileNameMappingTests.TestDataFileNameMap

Code with line numbers

This unit test case method tests data file name map .

This unit test case includes following focal methods:
(1) var mappedPath = mapping.GetTargetPath(sourcePath);(@line 47)
This focal method is related to assertions at line 57

This unit test case validates that:
(1) File.Exists(mappedPath) is true.

(2) data is not null.
   data is obtained from
   1) variable compressionEnabled through slicing path
   2) variable sourcePath through slicing path
   3) variable compressionEnabled through slicing path.

150.  ABB.SrcML.Data.Test.DataGeneratorTests.TestBadEncoding

Code with line numbers

This unit test case method tests bad encoding .

151.  ABB.SrcML.Data.Test.DataGeneratorTests.TestMissingSrcMLFile

Code with line numbers

This unit test case method tests missing src ml file .

152.  ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveClassDefinition

Code with line numbers

This unit test case method tests remove class definition .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(hFileunit));(@line 44)
This focal method is related to assertions at line 46, line 47

This unit test case validates that:
(1) afterScope.ChildStatements.Count() is equal to 1.
   afterScope is obtained from
   1) variable cppXml through slicing path
   2) variable hXml through slicing path.

(2) afterScope.ChildStatements.First() as TypeDefinition is not null.
   afterScope is obtained from
   1) variable cppXml through slicing path
   2) variable hXml through slicing path.

153.  ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveMethodFromClass

Code with line numbers

This unit test case method tests remove method from class.

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(cppFileUnit));(@line 79)
This focal method is related to assertions at line 81, line 82

This unit test case validates that:
(1) afterScope.ChildStatements.Count() is equal to 1.
   afterScope is obtained from
   1) variable hXml through slicing path
   2) variable cppXml through slicing path.

(2) afterScope.ChildStatements.First() as TypeDefinition is not null.
   afterScope is obtained from
   1) variable hXml through slicing path
   2) variable cppXml through slicing path.

154.  ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveMethodDeclaration_Global

Code with line numbers

This unit test case method tests remove method declaration global .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(fileunitDecl));(@line 101)
This focal method is related to assertions at line 103, line 104

This unit test case validates that:
(1) afterScope.ChildStatements.Count() is equal to 1.
   afterScope is obtained from
   1) variable defXml through slicing path
   2) variable declXml through slicing path.

(2) MethodDefinition afterScope.ChildStatements.First().Name is equal to "Foo".
   afterScope is obtained from
   1) variable defXml through slicing path
   2) variable declXml through slicing path.

155.  ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveMethodDefinition_Class

Code with line numbers

This unit test case method tests remove method definition class .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(cppFileunit));(@line 135)
This focal method is related to assertions at line 137, line 139

This unit test case validates that:
(1) afterScope.ChildStatements.Count() is equal to 1.
   afterScope is obtained from
   1) variable hXml through slicing path
   2) variable cppXml through slicing path.

(2) foo is not null.
   foo is obtained from
   1) variable hXml through slicing path
   2) variable cppXml through slicing path.

156.  ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveMethodDefinition_Global

Code with line numbers

This unit test case method tests remove method definition global .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(fileUnitDef));(@line 159)
This focal method is related to assertions at line 161, line 162

This unit test case validates that:
(1) afterScope.ChildStatements.Count() is equal to 1.
   afterScope is obtained from
   1) variable declXml through slicing path
   2) variable defXml through slicing path.

(2) MethodDefinition afterScope.ChildStatements.First().Name is equal to "Foo".
   afterScope is obtained from
   1) variable declXml through slicing path
   2) variable defXml through slicing path.

157.  ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveMethodFromGlobal

Code with line numbers

This unit test case method tests remove method from global.

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(fileunitBaz));(@line 181)
This focal method is related to assertions at line 182

This unit test case validates that:
(1) afterScope.ChildStatements.OfType().Count() is equal to 2.
   afterScope is obtained from
   1) variable fooXml through slicing path
   2) variable bazXml through slicing path.

158.  ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemoveNamespace

Code with line numbers

This unit test case method tests remove namespace .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(bFileunit));(@line 209)
This focal method is related to assertions at line 211

This unit test case validates that:
(1) afterScope.ChildStatements.OfType().Count() is equal to 2.
   afterScope is obtained from
   1) variable aXml through slicing path
   2) variable bXml through slicing path.

159.  ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestRemovePartOfNamespace

Code with line numbers

This unit test case method tests remove part of namespace.

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(a2Fileunit));(@line 238)
This focal method is related to assertions at line 240, line 241

This unit test case validates that:
(1) afterScope.ChildStatements.OfType().Count() is equal to 1.
   afterScope is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

(2) afterScope.ChildStatements.First().ChildStatements.OfType().Count() is equal to 2.
   afterScope is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

160.  ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestCppRemovalWithNamespaceAndClass

Code with line numbers

This unit test case method tests cpp removal with namespace and class.

161.  ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestHeaderRemovalWithNamespaceAndClass

Code with line numbers

This unit test case method tests header removal with namespace and class.

162.  ABB.SrcML.Data.Test.FileRemovalTests_Cpp.TestTestHelper

Code with line numbers

This unit test case method tests test helper .

163.  ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemoveClass_Global

Code with line numbers

This unit test case method tests remove class global .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(bazFileUnit));(@line 44)
This focal method is related to assertions at line 46, line 47

This unit test case validates that:
(1) afterScope.ChildStatements.OfType().Count() is equal to 0.
   afterScope is obtained from
   1) variable fooXml through slicing path
   2) variable bazXml through slicing path.

(2) afterScope.ChildStatements.OfType().Count() is equal to 2.
   afterScope is obtained from
   1) variable fooXml through slicing path
   2) variable bazXml through slicing path.

164.  ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemoveNamespace

Code with line numbers

This unit test case method tests remove namespace .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(bFileunit));(@line 73)
This focal method is related to assertions at line 75

This unit test case validates that:
(1) afterScope.ChildStatements.OfType().Count() is equal to 2.
   afterScope is obtained from
   1) variable aXml through slicing path
   2) variable bXml through slicing path.

165.  ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemovePartialClass

Code with line numbers

This unit test case method tests remove partial class .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(a2FileUnit));(@line 109)
This focal method is related to assertions at line 111, line 113, line 114, line 115, line 116

This unit test case validates that:
(1) afterScope.ChildStatements.Count() is equal to 1.
   afterScope is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

(2) typeA is not null.
   typeA is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

(3) typeA.ChildStatements.OfType().Count() is equal to 2.
   typeA is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

(4) typeA.ChildStatements.OfType().Any() is true.
   typeA is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

(5) typeA.ChildStatements.OfType().Any() is true.
   typeA is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

166.  ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemovePartialMethod_Declaration

Code with line numbers

This unit test case method tests remove partial method declaration .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(a1FileUnit));(@line 142)
This focal method is related to assertions at line 144, line 146, line 147, line 149, line 151, line 152

This unit test case validates that:
(1) afterScope.ChildStatements.Count() is equal to 1.
   afterScope is obtained from
   1) variable a2Xml through slicing path
   2) variable a1Xml through slicing path.

(2) typeA is not null.
   typeA is obtained from
   1) variable a2Xml through slicing path
   2) variable a1Xml through slicing path.

(3) typeA.ChildStatements.OfType().Count() is equal to 1.
   typeA is obtained from
   1) variable a2Xml through slicing path
   2) variable a1Xml through slicing path.

(4) foo.IsPartial is true.
   foo is obtained from
   1) variable a2Xml through slicing path
   2) variable a1Xml through slicing path.

(5) foo is not null.
   foo is obtained from
   1) variable a2Xml through slicing path
   2) variable a1Xml through slicing path.

(6) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable a2Xml through slicing path
   2) variable a1Xml through slicing path.

167.  ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemovePartialMethod_Implementation

Code with line numbers

This unit test case method tests remove partial method implementation .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(a2FileUnit));(@line 178)
This focal method is related to assertions at line 180, line 182, line 183, line 185, line 186

This unit test case validates that:
(1) afterScope.ChildStatements.Count() is equal to 1.
   afterScope is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

(2) typeA is not null.
   typeA is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

(3) typeA.ChildStatements.OfType().Count() is equal to 1.
   typeA is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

(4) foo is not null.
   foo is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

(5) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

168.  ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestRemovePartOfNamespace

Code with line numbers

This unit test case method tests remove part of namespace.

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(a2FileUnit));(@line 212)
This focal method is related to assertions at line 214, line 215

This unit test case validates that:
(1) afterScope.ChildStatements.OfType().Count() is equal to 1.
   afterScope is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

(2) afterScope.ChildStatements.First().ChildStatements.OfType().Count() is equal to 2.
   afterScope is obtained from
   1) variable a1Xml through slicing path
   2) variable a2Xml through slicing path.

169.  ABB.SrcML.Data.Test.FileRemovalTests_CSharp.TestFileRemovalWithDifferentCase

Code with line numbers

This unit test case method tests file removal with different case.

This unit test case includes following focal methods:
(1) globalScope.RemoveFile("b.cs");(@line 237)
This focal method is related to assertions at line 238

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable bXml through slicing path
   2) variable dXml through slicing path.

170.  ABB.SrcML.Data.Test.FileRemovalTests_Java.TestRemoveClass_Global

Code with line numbers

This unit test case method tests remove class global .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(bazFileUnit));(@line 45)
This focal method is related to assertions at line 47, line 48

This unit test case validates that:
(1) afterScope.ChildStatements.OfType().Count() is equal to 0.
   afterScope is obtained from
   1) variable fooXml through slicing path
   2) variable bazXml through slicing path.

(2) afterScope.ChildStatements.OfType().Count() is equal to 2.
   afterScope is obtained from
   1) variable fooXml through slicing path
   2) variable bazXml through slicing path.

171.  ABB.SrcML.Data.Test.FileRemovalTests_Java.TestRemoveClass_Namespace

Code with line numbers

This unit test case method tests remove class namespace .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(bazFileUnit));(@line 82)
This focal method is related to assertions at line 84

This unit test case validates that:
(1) afterScope.ChildStatements.OfType().Count() is equal to 1.
   afterScope is obtained from
   1) variable fooXml through slicing path
   2) variable bazXml through slicing path.

172.  ABB.SrcML.Data.Test.FileRemovalTests_Java.TestRemoveNamespace

Code with line numbers

This unit test case method tests remove namespace .

This unit test case includes following focal methods:
(1) var afterScope = beforeScope.Merge(CodeParser.ParseFileUnit(bazFileUnit));(@line 118)
This focal method is related to assertions at line 121, line 122

This unit test case validates that:
(1) comDotAbb.GetFullName() is equal to "com.ABB".
   comDotAbb is obtained from
   1) variable fooXml through slicing path
   2) variable bazXml through slicing path.

(2) comDotAbb.ChildStatements.OfType().Count() is equal to 2.
   comDotAbb is obtained from
   1) variable fooXml through slicing path
   2) variable bazXml through slicing path.

173.  ABB.SrcML.Data.Test.GetStatementTests.TestGlobalStatement

Code with line numbers

This unit test case method tests global statement .

This unit test case validates that:
(1) actual and globalScope.ChildStatements[1] are same.
   actual is obtained from
   1) variable xml through slicing path.

174.  ABB.SrcML.Data.Test.GetStatementTests.TestLocationInClass_CSharp

Code with line numbers

This unit test case method tests location in class c sharp.

This unit test case validates that:
(1) stmtActual and stmt are same.
   stmtActual is obtained from
   1) variable xml through slicing path.

(2) fooActual and foo are same.
   fooActual is obtained from
   1) variable xml through slicing path.

175.  ABB.SrcML.Data.Test.GetStatementTests.TestLocationInMain_Cpp

Code with line numbers

This unit test case method tests location in main cpp.

This unit test case validates that:
(1) globalScope.GetStatementForLocation(new SourceLocation("function_def.cpp",12,20)) and . ChildStatements[0] are same.
   globalScope is obtained from
   1) variable xml through slicing path.

176.  ABB.SrcML.Data.Test.GetStatementTests.TestLocationInMethodDefinition_Cpp

Code with line numbers

This unit test case method tests location in method definition cpp.

This unit test case validates that:
(1) bar.ChildStatements.Count is equal to 1.
   bar is obtained from
   1) variable hXml through slicing path.

(2) globalScope.GetStatementForLocation(new SourceLocation("Foo.cpp",3,8)) is equal to bar.ChildStatements[0].
   globalScope is obtained from
   1) variable hXml through slicing path.

177.  ABB.SrcML.Data.Test.GetStatementTests.TestLocationInForLoop

Code with line numbers

This unit test case method tests location in for loop.

This unit test case validates that:
(1) globalScope.GetStatementForLocation(new SourceLocation("Foo.cs",1,12)) and forLoop are same.
   globalScope is obtained from
   1) variable xml through slicing path.

178.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateAliasesForFiles_ImportClass

Code with line numbers

This unit test case method tests create aliases for files import class.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 38)
This focal method is related to assertions at line 39, line 42, line 43, line 44

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.AliasName is equal to "z".
   actual is obtained from
   1) variable xml through slicing path.

(4) actual.Target.ToString() is equal to "x.y.z".
   actual is obtained from
   1) variable xml through slicing path.

179.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateAliasesForFiles_ImportNamespace

Code with line numbers

This unit test case method tests create aliases for files import namespace.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 53)
This focal method is related to assertions at line 54, line 57, line 58

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.ImportedNamespace.ToString() is equal to "x.y.z".
   actual is obtained from
   1) variable xml through slicing path.

180.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinition_ClassInPackage

Code with line numbers

This unit test case method tests create type definition class in package.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 69)
This focal method is related to assertions at line 70, line 71, line 74, line 75, line 76, line 77, line 80, line 81, line 82, line 83, line 86, line 87, line 88, line 89, line 92, line 93

This unit test case validates that:
(1) globalScope.IsGlobal is true.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable xml through slicing path.

(3) packageA is not null.
   packageA is obtained from
   1) variable xml through slicing path.

(4) packageA.Name is equal to "A".
   packageA is obtained from
   1) variable xml through slicing path.

(5) packageA.IsGlobal is false.
   packageA is obtained from
   1) variable xml through slicing path.

(6) packageA.ChildStatements.Count() is equal to 1.
   packageA is obtained from
   1) variable xml through slicing path.

(7) packageAB is not null.
   packageAB is obtained from
   1) variable xml through slicing path.

(8) packageAB.Name is equal to "B".
   packageAB is obtained from
   1) variable xml through slicing path.

(9) packageAB.IsGlobal is false.
   packageAB is obtained from
   1) variable xml through slicing path.

(10) packageAB.ChildStatements.Count() is equal to 1.
   packageAB is obtained from
   1) variable xml through slicing path.

(11) packageABC is not null.
   packageABC is obtained from
   1) variable xml through slicing path.

(12) packageABC.Name is equal to "C".
   packageABC is obtained from
   1) variable xml through slicing path.

(13) packageABC.IsGlobal is false.
   packageABC is obtained from
   1) variable xml through slicing path.

(14) packageABC.ChildStatements.Count() is equal to 1.
   packageABC is obtained from
   1) variable xml through slicing path.

(15) typeD is not null.
   typeD is obtained from
   1) variable xml through slicing path.

(16) typeD.Name is equal to "D".
   typeD is obtained from
   1) variable xml through slicing path.

181.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_Class

Code with line numbers

This unit test case method tests create type definitions class .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 103)
This focal method is related to assertions at line 104, line 107, line 108, line 109

This unit test case validates that:
(1) globalScope.IsGlobal is true.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) actual is not null.
   actual is obtained from
   1) variable xml through slicing path.

(3) actual.Name is equal to "A".
   actual is obtained from
   1) variable xml through slicing path.

(4) actual.ChildStatements.Count is equal to 0.
   actual is obtained from
   1) variable xml through slicing path.

182.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassInFunction

Code with line numbers

This unit test case method tests create type definitions class in function.

This unit test case includes following focal methods:
(1) An assertion in line 130 validating that typeA.GetFullName() is equal to "A".
(2) An assertion in line 132 validating that fooMethod.GetFullName() is equal to "A.foo".
(3) An assertion in line 134 validating that typeB.GetFullName() is equal to "A.foo.B".

This unit test case validates that:
(1) fooMethod.ParentStatement and typeA are same.
   fooMethod is obtained from
   1) variable xml through slicing path.

(2) typeB.ParentStatement and fooMethod are same.
   typeB is obtained from
   1) variable xml through slicing path.

183.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassWithExtendsAndImplements

Code with line numbers

This unit test case method tests create type definitions class with extends and implements.

This unit test case includes following focal methods:
(1) var actual = codeParser.ParseFileUnit(xmlElement).ChildStatements.First() as TypeDefinition;(@line 149)
This focal method is related to assertions at line 150, line 152, line 153, line 154, line 155

This unit test case validates that:
(1) actual is not null.

(2) globalNamespace is not null.

(3) actual.Name is equal to "Foo".

(4) actual.ParentTypeNames.Count is equal to 4.

(5) globalNamespace.IsGlobal is true.

(6) test is true.

184.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassWithInnerClass

Code with line numbers

This unit test case method tests create type definitions class with inner class.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 176)
This focal method is related to assertions at line 181
(2) An assertion in line 182 validating that typeA.GetFullName() is equal to "A".
(3) An assertion in line 183 validating that typeB.GetFullName() is equal to "A.B".

This unit test case validates that:
(1) typeB.ParentStatement and typeA are same.
   typeB is obtained from
   1) variable xml through slicing path.

185.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassWithParents

Code with line numbers

This unit test case method tests create type definitions class with parents.

This unit test case includes following focal methods:
(1) var actual = codeParser.ParseFileUnit(xmlElement).ChildStatements.First() as TypeDefinition;(@line 194)
This focal method is related to assertions at line 196, line 197, line 198

This unit test case validates that:
(1) actual.Name is equal to "A".

(2) actual.ParentTypeNames.Count is equal to 3.

(3) globalNamespace.IsGlobal is true.

(4) test is true.

186.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassWithQualifiedParent

Code with line numbers

This unit test case method tests create type definitions class with qualified parent.

This unit test case includes following focal methods:
(1) var actual = codeParser.ParseFileUnit(xmlElement).ChildStatements.First() as TypeDefinition;(@line 216)
This focal method is related to assertions at line 219, line 220, line 221, line 225, line 228, line 229, line 230

This unit test case validates that:
(1) actual.Name is equal to "D".

(2) actual.ParentTypeNames.Count is equal to 1.

(3) globalNamespace.IsGlobal is true.

(4) parent.Name is equal to "C".

(5) prefixNames.Count is equal to 2.

(6) prefixNames[0].Name is equal to "A".

(7) prefixNames[1].Name is equal to "B".

187.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_ClassWithSuperClass

Code with line numbers

This unit test case method tests create type definitions class with super class.

This unit test case includes following focal methods:
(1) var actual = codeParser.ParseFileUnit(xmlElement).ChildStatements.First() as TypeDefinition;(@line 244)
This focal method is related to assertions at line 245, line 246, line 247, line 248, line 250, line 251

This unit test case validates that:
(1) actual is not null.

(2) actual.Name is equal to "Foo".

(3) actual.ParentTypeNames.Count is equal to 1.

(4) actual.ParentTypeNames.First().Name is equal to "xyzzy".

(5) globalNamespace is not null.

(6) globalNamespace.IsGlobal is true.

188.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_InnerClassWithNamespace

Code with line numbers

This unit test case method tests create type definitions inner class with namespace.

This unit test case includes following focal methods:
(1) var typeDefinitions = globalScope.GetDescendants().ToList();(@line 266)
This focal method is related to assertions at line 267, line 272, line 273, line 274, line 276, line 277, line 278

This unit test case validates that:
(1) typeDefinitions.Count() is equal to 2.
   typeDefinitions is obtained from
   1) variable xml through slicing path.

(2) outer.Name is equal to "B".
   outer is obtained from
   1) variable xml through slicing path.

(3) outer.GetAncestors().First().GetFullName() is equal to "A".
   outer is obtained from
   1) variable xml through slicing path.

(4) outer.GetFullName() is equal to "A.B".
   outer is obtained from
   1) variable xml through slicing path.

(5) inner.Name is equal to "C".
   inner is obtained from
   1) variable xml through slicing path.

(6) inner.GetAncestors().First().GetFullName() is equal to "A".
   inner is obtained from
   1) variable xml through slicing path.

(7) inner.GetFullName() is equal to "A.B.C".
   inner is obtained from
   1) variable xml through slicing path.

189.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestCreateTypeDefinitions_Interface

Code with line numbers

This unit test case method tests create type definitions interface .

This unit test case includes following focal methods:
(1) var actual = codeParser.ParseFileUnit(xmlElement).ChildStatements.First() as TypeDefinition;(@line 289)
This focal method is related to assertions at line 292, line 293, line 294

This unit test case validates that:
(1) actual.Name is equal to "A".

(2) actual.Kind is equal to TypeKind.Interface.

(3) globalNamespace.IsGlobal is true.

190.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestFieldCreation

Code with line numbers

This unit test case method tests field creation .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 306)
This focal method is related to assertions at line 309, line 312, line 313, line 314, line 315

This unit test case validates that:
(1) typeA.ChildStatements.Count is equal to 1.
   typeA is obtained from
   1) variable xml through slicing path.

(2) fieldB is not null.
   fieldB is obtained from
   1) variable xml through slicing path.

(3) fieldB.Name is equal to "B".
   fieldB is obtained from
   1) variable xml through slicing path.

(4) fieldB.VariableType.Name is equal to "int".
   fieldB is obtained from
   1) variable xml through slicing path.

(5) fieldB.Accessibility is equal to AccessModifier.None.
   fieldB is obtained from
   1) variable xml through slicing path.

191.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForMethod_None

Code with line numbers

This unit test case method tests get access modifier for method none.

This unit test case includes following focal methods:
(1) var method = globalScope.GetDescendants().First();(@line 329)
This focal method is related to assertions at line 331

This unit test case validates that:
(1) method.Accessibility is equal to AccessModifier.None.
   method is obtained from
   1) variable xml through slicing path.

192.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForMethod_Normal

Code with line numbers

This unit test case method tests get access modifier for method normal.

This unit test case includes following focal methods:
(1) var method = globalScope.GetDescendants().First();(@line 345)
This focal method is related to assertions at line 347

This unit test case validates that:
(1) method.Accessibility is equal to AccessModifier.Public.
   method is obtained from
   1) variable xml through slicing path.

193.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForMethod_Static

Code with line numbers

This unit test case method tests get access modifier for method static.

This unit test case includes following focal methods:
(1) var method = globalScope.GetDescendants().First();(@line 361)
This focal method is related to assertions at line 363

This unit test case validates that:
(1) method.Accessibility is equal to AccessModifier.Public.
   method is obtained from
   1) variable xml through slicing path.

194.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForType_None

Code with line numbers

This unit test case method tests get access modifier for type none.

This unit test case includes following focal methods:
(1) var type = globalScope.GetDescendants().First();(@line 373)
This focal method is related to assertions at line 375

This unit test case validates that:
(1) type.Accessibility is equal to AccessModifier.None.
   type is obtained from
   1) variable xml through slicing path.

195.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForType_Normal

Code with line numbers

This unit test case method tests get access modifier for type normal.

This unit test case includes following focal methods:
(1) var type = globalScope.GetDescendants().First();(@line 385)
This focal method is related to assertions at line 387

This unit test case validates that:
(1) type.Accessibility is equal to AccessModifier.Public.
   type is obtained from
   1) variable xml through slicing path.

196.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestGetAccessModifierForType_Static

Code with line numbers

This unit test case method tests get access modifier for type static.

This unit test case includes following focal methods:
(1) var type = globalScope.GetDescendants().First();(@line 397)
This focal method is related to assertions at line 399

This unit test case validates that:
(1) type.Accessibility is equal to AccessModifier.Public.
   type is obtained from
   1) variable xml through slicing path.

197.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestMethodCallCreation_WithConflictingMethodNames

Code with line numbers

This unit test case method tests method call creation with conflicting method names.

This unit test case includes following focal methods:
(1) var containsMethods = globalScope.GetDescendants().Where().ToList();(@line 430)
This focal method is related to assertions at line 433, line 435, line 436, line 437, line 439, line 441, line 442, line 443

This unit test case validates that:
(1) aDotContains is not null.
   aDotContains is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(2) bDotContains is not null.
   bDotContains is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(3) aDotContains.GetFullName() is equal to "A.Contains".
   aDotContains is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(4) bDotContains.GetFullName() is equal to "B.Contains".
   bDotContains is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(5) aDotContains.ChildStatements.Count is equal to 1.
   aDotContains is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(6) containsCall is not null.
   containsCall is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(7) containsCall.FindMatches().First() and bDotContains are same.
   containsCall is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

(8) containsCall.FindMatches().First() and aDotContains are not same.
   containsCall is obtained from
   1) variable a_xml through slicing path
   2) variable b_xml through slicing path.

198.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestMethodCallCreation_WithThisKeyword

Code with line numbers

This unit test case method tests method call creation with this keyword.

This unit test case includes following focal methods:
(1) var aDotBar = globalScope.GetDescendants().FirstOrDefault();(@line 468)
This focal method is related to assertions at line 469
(2) var aDotBDotFoo = globalScope.GetDescendants().FirstOrDefault();(@line 470)
This focal method is related to assertions at line 471
(3) var aDotBDotBar = globalScope.GetDescendants().FirstOrDefault();(@line 472)
This focal method is related to assertions at line 473, line 475, line 476, line 477, line 479, line 481, line 483, line 484

This unit test case validates that:
(1) aDotBar is not null.
   aDotBar is obtained from
   1) variable a_xml through slicing path.

(2) aDotBDotFoo is not null.
   aDotBDotFoo is obtained from
   1) variable a_xml through slicing path.

(3) aDotBDotBar is not null.
   aDotBDotBar is obtained from
   1) variable a_xml through slicing path.

(4) aDotBar.GetFullName() is equal to "A.Bar".
   aDotBar is obtained from
   1) variable a_xml through slicing path.

(5) aDotBDotFoo.GetFullName() is equal to "A.B.Foo".
   aDotBDotFoo is obtained from
   1) variable a_xml through slicing path.

(6) aDotBDotBar.GetFullName() is equal to "A.B.Bar".
   aDotBDotBar is obtained from
   1) variable a_xml through slicing path.

(7) aDotBDotFoo.ChildStatements.Count is equal to 1.
   aDotBDotFoo is obtained from
   1) variable a_xml through slicing path.

(8) barCall is not null.
   barCall is obtained from
   1) variable a_xml through slicing path.

(9) matches.Count is equal to 1.
   matches is obtained from
   1) variable a_xml through slicing path.

(10) matches.First() and aDotBDotBar are same.
   matches is obtained from
   1) variable a_xml through slicing path.

199.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestMethodCallCreation_WithSuperKeyword

Code with line numbers

This unit test case method tests method call creation with super keyword.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 509)
This focal method is related to assertions at line 510
(2) var fooMethods = globalScope.GetDescendants().ToList();(@line 512)
This focal method is related to assertions at line 515, line 517
(3) var bar = globalScope.GetDescendants().FirstOrDefault();(@line 519)
This focal method is related to assertions at line 520, line 521, line 523, line 524

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) bDotFoo is not null.
   bDotFoo is obtained from
   1) variable xml through slicing path.

(3) cDotFoo is not null.
   cDotFoo is obtained from
   1) variable xml through slicing path.

(4) bar is not null.
   bar is obtained from
   1) variable xml through slicing path.

(5) bar.ChildStatements.Count is equal to 1.
   bar is obtained from
   1) variable xml through slicing path.

(6) methodCall is not null.
   methodCall is obtained from
   1) variable xml through slicing path.

(7) methodCall.FindMatches().FirstOrDefault() and bDotFoo are same.
   methodCall is obtained from
   1) variable xml through slicing path.

200.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestMethodCallCreation_SuperConstructor

Code with line numbers

This unit test case method tests method call creation super constructor .

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(xmlElement);(@line 547)
This focal method is related to assertions at line 548
(2) var bConstructor = globalScope.GetDescendants().FirstOrDefault();(@line 550)
This focal method is related to assertions at line 551
(3) var cConstructor = globalScope.GetDescendants().FirstOrDefault();(@line 552)
This focal method is related to assertions at line 553, line 555, line 557, line 558, line 559

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) bConstructor is not null.
   bConstructor is obtained from
   1) variable xml through slicing path.

(3) cConstructor is not null.
   cConstructor is obtained from
   1) variable xml through slicing path.

(4) cConstructor.ChildStatements.Count is equal to 1.
   cConstructor is obtained from
   1) variable xml through slicing path.

(5) superCall is not null.
   superCall is obtained from
   1) variable xml through slicing path.

(6) superCall.IsConstructor is true.
   superCall is obtained from
   1) variable xml through slicing path.

(7) superCall.FindMatches().FirstOrDefault() and bConstructor are same.
   superCall is obtained from
   1) variable xml through slicing path.

201.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestMethodCallCreation_ConstructorFromOtherNamespace

Code with line numbers

This unit test case method tests method call creation constructor from other namespace.

This unit test case validates that:
(1) typeC is not null.

(2) typeE is not null.

(3) constructorForC is not null.
   constructorForC is obtained from
   1) variable typeC through slicing path.

(4) constructorForC.Name is equal to "C".
   constructorForC is obtained from
   1) variable typeC through slicing path.

(5) constructorForC.IsConstructor is true.
   constructorForC is obtained from
   1) variable typeC through slicing path.

(6) eDotMain is not null.
   eDotMain is obtained from
   1) variable typeE through slicing path.

(7) eDotMain.Name is equal to "main".
   eDotMain is obtained from
   1) variable typeE through slicing path.

(8) callToC is not null.

(9) callToC.Name is equal to "C".

(10) callToC.IsConstructor is true.

(11) callToC.FindMatches().FirstOrDefault() is equal to constructorForC.

202.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestVariablesWithSpecifiers

Code with line numbers

This unit test case method tests variables with specifiers.

This unit test case includes following focal methods:
(1) var globalScope = codeParser.ParseFileUnit(testUnit);(@line 639)
This focal method is related to assertions at line 640, line 643, line 644, line 645, line 646, line 649, line 650, line 651, line 652, line 655, line 656, line 657, line 658

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 3.
   globalScope is obtained from
   1) variable testXml through slicing path.

(2) declA is not null.
   declA is obtained from
   1) variable testXml through slicing path.

(3) declA.Name is equal to "A".
   declA is obtained from
   1) variable testXml through slicing path.

(4) declA.VariableType.Name is equal to "int".
   declA is obtained from
   1) variable testXml through slicing path.

(5) declA.Accessibility is equal to AccessModifier.Public.
   declA is obtained from
   1) variable testXml through slicing path.

(6) declB is not null.
   declB is obtained from
   1) variable testXml through slicing path.

(7) declB.Name is equal to "B".
   declB is obtained from
   1) variable testXml through slicing path.

(8) declB.VariableType.Name is equal to "int".
   declB is obtained from
   1) variable testXml through slicing path.

(9) declB.Accessibility is equal to AccessModifier.Public.
   declB is obtained from
   1) variable testXml through slicing path.

(10) declC is not null.
   declC is obtained from
   1) variable testXml through slicing path.

(11) declC.Name is equal to "C".
   declC is obtained from
   1) variable testXml through slicing path.

(12) declC.VariableType.Name is equal to "Foo".
   declC is obtained from
   1) variable testXml through slicing path.

(13) declC.Accessibility is equal to AccessModifier.Private.
   declC is obtained from
   1) variable testXml through slicing path.

203.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestImport_NameResolution

Code with line numbers

This unit test case method tests import name resolution .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 688)
This focal method is related to assertions at line 689
(2) var baz = globalScope.GetDescendants().FirstOrDefault();(@line 691)
This focal method is related to assertions at line 692
(3) var thingy = globalScope.GetDescendants().FirstOrDefault();(@line 694)
This focal method is related to assertions at line 695, line 697, line 698, line 702, line 703

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) baz is not null.
   baz is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) thingy is not null.
   thingy is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) thingyTypes.Count is equal to 1.
   thingyTypes is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) thingyTypes[0] and baz are same.
   thingyTypes is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) bazCall is not null.
   bazCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) bazCall.FindMatches().FirstOrDefault() and bazDef are same.
   bazCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

204.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestAlias_NameResolution

Code with line numbers

This unit test case method tests alias name resolution .

This unit test case includes following focal methods:
(1) var globalScope = scopeA.Merge(scopeB);(@line 737)
This focal method is related to assertions at line 738
(2) var thingDef = globalScope.GetDescendants().FirstOrDefault();(@line 740)
This focal method is related to assertions at line 741, line 742
(3) var bDef = globalScope.GetDescendants().FirstOrDefault();(@line 744)
This focal method is related to assertions at line 745, line 746, line 748, line 749

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(2) thingDef is not null.
   thingDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(3) TypeDefinition thingDef.ParentStatement.Name is equal to "Baz".
   thingDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(4) bDef is not null.
   bDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(5) bDef.ChildStatements.Count is equal to 1.
   bDef is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(6) thingCall is not null.
   thingCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

(7) thingCall.FindMatches().First() and thingDef are same.
   thingCall is obtained from
   1) variable xmlA through slicing path
   2) variable xmlB through slicing path.

205.  ABB.SrcML.Data.Test.JavaCodeParserTests.BasicParentTest_Java

Code with line numbers

This unit test case method tests handle basic parent test java .

This unit test case includes following focal methods:
(1) globalScope = globalScope.Merge(codeParser.ParseFileUnit(fileUnitC));(@line 772)
This focal method is related to assertions at line 774
(2) var typeDefinitions = globalScope.GetDescendants().OrderBy().ToList();(@line 776)
This focal method is related to assertions at line 782, line 789

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 3.
   globalScope is obtained from
   1) variable a_xml through slicing path.

(2) typeB.Name is equal to "B".
   typeB is obtained from
   1) variable a_xml through slicing path.

(3) cDotA.VariableType.FindMatches().FirstOrDefault() is true.

(4) parentOfA.FindMatches().FirstOrDefault() is true.
   parentOfA is obtained from
   1) variable a_xml through slicing path.

206.  ABB.SrcML.Data.Test.JavaCodeParserTests.TestTypeUseForOtherNamespace

Code with line numbers

This unit test case method tests type use for other namespace.

This unit test case includes following focal methods:
(1) var typeE = globalScope.GetDescendants().Where().FirstOrDefault();(@line 827)
This focal method is related to assertions at line 830, line 833, line 834, line 837, line 838, line 843, line 844, line 845, line 847, line 848

This unit test case validates that:
(1) mainMethod.Name is equal to "main".
   mainMethod is obtained from
   1) variable c_xml through slicing path.

(2) fooMethod is not null.
   fooMethod is obtained from
   1) variable c_xml through slicing path.

(3) fooMethod.Name is equal to "Foo".
   fooMethod is obtained from
   1) variable c_xml through slicing path.

(4) cDeclaration is not null.
   cDeclaration is obtained from
   1) variable c_xml through slicing path.

(5) cDeclaration.VariableType.ResolveType().FirstOrDefault() and typeC are same.
   cDeclaration is obtained from
   1) variable c_xml through slicing path.

(6) callToCConstructor.Name is equal to "C".
   callToCConstructor is obtained from
   1) variable c_xml through slicing path.

(7) callToCConstructor.IsConstructor is true.
   callToCConstructor is obtained from
   1) variable c_xml through slicing path.

(8) callToCConstructor.FindMatches().FirstOrDefault() is null.
   callToCConstructor is obtained from
   1) variable c_xml through slicing path.

(9) callToFoo.Name is equal to "Foo".
   callToFoo is obtained from
   1) variable c_xml through slicing path.

(10) callToFoo.FindMatches().FirstOrDefault() and fooMethod are same.
   callToFoo is obtained from
   1) variable c_xml through slicing path.

207.  ABB.SrcML.Data.Test.MergeTests.TestConstructorMerge_Cpp

Code with line numbers

This unit test case method tests constructor merge cpp .

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(2) typeA.Name is equal to "A".
   typeA is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(3) typeA.ChildStatements.Count() is equal to 1.
   typeA is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(4) typeA.PrimaryLocation.SourceFileName is equal to "A.h".
   typeA is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(5) constructor.IsConstructor is true.
   constructor is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(6) constructor.IsDestructor is false.
   constructor is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(7) constructor.IsPartial is false.
   constructor is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(8) constructor.Accessibility is equal to AccessModifier.Private.
   constructor is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(9) constructor.PrimaryLocation.SourceFileName is equal to "A.cpp".
   constructor is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

208.  ABB.SrcML.Data.Test.MergeTests.TestNestedConstructorMerge_Cpp

Code with line numbers

This unit test case method tests nested constructor merge cpp .

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 1.
   globalScope is obtained from
   1) variable headerXml through slicing path
   2) variable implXml through slicing path.

(2) foo.ChildStatements.Count is equal to 3.
   foo is obtained from
   1) variable headerXml through slicing path
   2) variable implXml through slicing path.

(3) foo.ChildStatements.OfType().Count() is equal to 2.
   foo is obtained from
   1) variable headerXml through slicing path
   2) variable implXml through slicing path.

(4) foo.ChildStatements.OfType().Count() is equal to 1.
   foo is obtained from
   1) variable headerXml through slicing path
   2) variable implXml through slicing path.

(5) foo.PrimaryLocation.SourceFileName is equal to "Foo.h".
   foo is obtained from
   1) variable headerXml through slicing path
   2) variable implXml through slicing path.

(6) bar.ChildStatements.Count is equal to 2.
   bar is obtained from
   1) variable headerXml through slicing path
   2) variable implXml through slicing path.

(7) bar.ChildStatements.OfType().Count() is equal to 2.
   bar is obtained from
   1) variable headerXml through slicing path
   2) variable implXml through slicing path.

(8) bar.PrimaryLocation.SourceFileName is equal to "Foo.h".
   bar is obtained from
   1) variable headerXml through slicing path
   2) variable implXml through slicing path.

(9) barConstructor.Locations.Count is equal to 2.
   barConstructor is obtained from
   1) variable headerXml through slicing path
   2) variable implXml through slicing path.

(10) barConstructor.PrimaryLocation.SourceFileName is equal to "Foo.cpp".
   barConstructor is obtained from
   1) variable headerXml through slicing path
   2) variable implXml through slicing path.

209.  ABB.SrcML.Data.Test.MergeTests.TestDestructorMerge_Cpp

Code with line numbers

This unit test case method tests destructor merge cpp .

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(2) typeA.Name is equal to "A".
   typeA is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(3) typeA.ChildStatements.Count() is equal to 1.
   typeA is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(4) typeA.PrimaryLocation.SourceFileName is equal to "A.h".
   typeA is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(5) destructor.IsDestructor is true.
   destructor is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(6) destructor.IsConstructor is false.
   destructor is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(7) destructor.IsPartial is false.
   destructor is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(8) destructor.Accessibility is equal to AccessModifier.Private.
   destructor is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(9) destructor.PrimaryLocation.SourceFileName is equal to "A.cpp".
   destructor is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

210.  ABB.SrcML.Data.Test.MergeTests.TestMethodDefinitionMerge_Cpp

Code with line numbers

This unit test case method tests method definition merge cpp .

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(2) typeA.Name is equal to "A".
   typeA is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(3) typeA.ChildStatements.Count() is equal to 1.
   typeA is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(4) typeA.PrimaryLocation.SourceFileName is equal to "A.h".
   typeA is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(5) methodFoo.Name is equal to "Foo".
   methodFoo is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(6) methodFoo.ChildStatements.Count() is equal to 2.
   methodFoo is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(7) methodFoo.PrimaryLocation.SourceFileName is equal to "A.cpp".
   methodFoo is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

(8) methodFoo.Accessibility is equal to AccessModifier.Private.
   methodFoo is obtained from
   1) variable header_xml through slicing path
   2) variable impl_xml through slicing path.

211.  ABB.SrcML.Data.Test.MergeTests.TestMethodDefinitionMerge_NoParameterName

Code with line numbers

This unit test case method tests method definition merge no parameter name .

This unit test case includes following focal methods:
(1) globalScope = globalScope.Merge(definitionScope) as NamespaceDefinition;(@line 216)
This focal method is related to assertions at line 218, line 220, line 222, line 223, line 226, line 227

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable globalScope through slicing path.

(2) methodFoo is not null.
   methodFoo is obtained from
   1) variable globalScope through slicing path.

(3) methodFoo.Name is equal to "Foo".
   methodFoo is obtained from
   1) variable globalScope through slicing path.

(4) methodFoo.Parameters.Count is equal to 1.
   methodFoo is obtained from
   1) variable globalScope through slicing path.

(5) parameter.VariableType.Name is equal to "char".
   parameter is obtained from
   1) variable globalScope through slicing path.

(6) parameter.Name is equal to "bar".
   parameter is obtained from
   1) variable globalScope through slicing path.

212.  ABB.SrcML.Data.Test.MergeTests.TestCreateMethodDefinition_TwoUnresolvedParents

Code with line numbers

This unit test case method tests create method definition two unresolved parents .

This unit test case includes following focal methods:
(1) An assertion in line 257 validating that typeB.GetFullName() is equal to "A.B".
(2) An assertion in line 262 validating that methodFoo.GetFullName() is equal to "A.B.Foo".

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(2) namespaceA.Name is equal to "A".
   namespaceA is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(3) namespaceA.ChildStatements.Count() is equal to 1.
   namespaceA is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(4) namespaceA.Locations.Count is equal to 2.
   namespaceA is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(5) typeB.ChildStatements.Count() is equal to 1.
   typeB is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(6) typeB.Locations.Count is equal to 2.
   typeB is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(7) methodFoo.ChildStatements.Count() is equal to 0.
   methodFoo is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(8) methodFoo.Locations.Count is equal to 1.
   methodFoo is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(9) namespaceA.ParentStatement and globalScope are same.
   namespaceA is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(10) typeB.ParentStatement and namespaceA are same.
   typeB is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(11) methodFoo.ParentStatement and typeB are same.
   methodFoo is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

213.  ABB.SrcML.Data.Test.MergeTests.TestCreateMethodDefinition_TwoUnresolvedParentsWithPrototype

Code with line numbers

This unit test case method tests create method definition two unresolved parents with prototype.

This unit test case includes following focal methods:
(1) An assertion in line 296 validating that typeB.GetFullName() is equal to "A.B".
(2) An assertion in line 301 validating that methodFoo.GetFullName() is equal to "A.B.Foo".

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(2) namespaceA.Name is equal to "A".
   namespaceA is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(3) namespaceA.ChildStatements.Count() is equal to 1.
   namespaceA is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(4) namespaceA.Locations.Count is equal to 2.
   namespaceA is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(5) typeB.ChildStatements.Count() is equal to 1.
   typeB is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(6) typeB.Locations.Count is equal to 2.
   typeB is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(7) methodFoo.ChildStatements.Count() is equal to 0.
   methodFoo is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(8) methodFoo.Locations.Count is equal to 2.
   methodFoo is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(9) namespaceA.ParentStatement and globalScope are same.
   namespaceA is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(10) typeB.ParentStatement and namespaceA are same.
   typeB is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

(11) methodFoo.ParentStatement and typeB are same.
   methodFoo is obtained from
   1) variable xmlh through slicing path
   2) variable xmlcpp through slicing path.

214.  ABB.SrcML.Data.Test.MergeTests.TestMethodDefinitionMerge_NoParameters

Code with line numbers

This unit test case method tests method definition merge no parameters .

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable declXml through slicing path
   2) variable defXml through slicing path.

(2) MethodDefinition globalScope.ChildStatements.First().Name is equal to "Foo".
   globalScope is obtained from
   1) variable declXml through slicing path
   2) variable defXml through slicing path.

215.  ABB.SrcML.Data.Test.MergeTests.TestNamespaceMerge_Cpp

Code with line numbers

This unit test case method tests namespace merge cpp .

This unit test case includes following focal methods:
(1) globalScope = globalScope.Merge(scopeD).Merge(scopeE).Merge(scopeF) as NamespaceDefinition;(@line 364)
This focal method is related to assertions at line 366, line 371, line 372
(2) An assertion in line 373 validating that namespaceA.GetFullName() is equal to "A".
(3) An assertion in line 374 validating that namespaceD.GetFullName() is equal to "D".
(4) An assertion in line 385 validating that namespaceC.GetAncestors().First().GetFullName() is equal to "A.B".
(5) An assertion in line 393 validating that typeD.GetFullName() is equal to "A.B.C.D".
(6) An assertion in line 394 validating that typeE.GetFullName() is equal to "A.B.C.E".
(7) An assertion in line 395 validating that typeF.GetFullName() is equal to "D.F".

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 2.
   globalScope is obtained from
   1) variable globalScope through slicing path
   2) variable e_xml through slicing path
   3) variable f_xml through slicing path.

(2) namespaceA.ChildStatements.Count() is equal to 1.
   namespaceA is obtained from
   1) variable globalScope through slicing path
   2) variable e_xml through slicing path
   3) variable f_xml through slicing path.

(3) namespaceD.ChildStatements.Count() is equal to 1.
   namespaceD is obtained from
   1) variable globalScope through slicing path
   2) variable e_xml through slicing path
   3) variable f_xml through slicing path.

(4) namespaceB.Name is equal to "B".
   namespaceB is obtained from
   1) variable globalScope through slicing path
   2) variable e_xml through slicing path
   3) variable f_xml through slicing path.

(5) typeF.Name is equal to "F".
   typeF is obtained from
   1) variable globalScope through slicing path
   2) variable e_xml through slicing path
   3) variable f_xml through slicing path.

(6) namespaceB.ChildStatements.Count() is equal to 1.
   namespaceB is obtained from
   1) variable globalScope through slicing path
   2) variable e_xml through slicing path
   3) variable f_xml through slicing path.

(7) namespaceC.Name is equal to "C".
   namespaceC is obtained from
   1) variable globalScope through slicing path
   2) variable e_xml through slicing path
   3) variable f_xml through slicing path.

(8) namespaceC.ChildStatements.Count() is equal to 2.
   namespaceC is obtained from
   1) variable globalScope through slicing path
   2) variable e_xml through slicing path
   3) variable f_xml through slicing path.

(9) typeD.ParentStatement == typeE.ParentStatement is true.
   typeD is obtained from
   1) variable globalScope through slicing path
   2) variable e_xml through slicing path
   3) variable f_xml through slicing path.

(10) typeD.ParentStatement == namespaceC is true.
   typeD is obtained from
   1) variable globalScope through slicing path
   2) variable e_xml through slicing path
   3) variable f_xml through slicing path.

216.  ABB.SrcML.Data.Test.MergeTests.TestNamespaceMerge_Java

Code with line numbers

This unit test case method tests namespace merge java .

This unit test case includes following focal methods:
(1) An assertion in line 428 validating that packageAB.GetFullName() is equal to "A.B".
(2) An assertion in line 434 validating that packageABC.GetFullName() is equal to "A.B.C".

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 2.
   globalScope is obtained from
   1) variable d_xml through slicing path
   2) variable f_xml through slicing path.

(2) packageA.Name is equal to "A".
   packageA is obtained from
   1) variable d_xml through slicing path
   2) variable f_xml through slicing path.

(3) packageD.Name is equal to "D".
   packageD is obtained from
   1) variable d_xml through slicing path
   2) variable f_xml through slicing path.

(4) packageAB.Name is equal to "B".
   packageAB is obtained from
   1) variable d_xml through slicing path
   2) variable f_xml through slicing path.

(5) packageABC.Name is equal to "C".
   packageABC is obtained from
   1) variable d_xml through slicing path
   2) variable f_xml through slicing path.

(6) packageABC.Name is equal to "C".
   packageABC is obtained from
   1) variable d_xml through slicing path
   2) variable f_xml through slicing path.

(7) typeD.Name is equal to "D".
   typeD is obtained from
   1) variable d_xml through slicing path
   2) variable f_xml through slicing path.

(8) typeE.Name is equal to "E".
   typeE is obtained from
   1) variable d_xml through slicing path
   2) variable f_xml through slicing path.

(9) typeD.ParentStatement == typeE.ParentStatement is true.
   typeD is obtained from
   1) variable d_xml through slicing path
   2) variable f_xml through slicing path.

(10) typeD.ParentStatement != typeF.ParentStatement is true.
   typeD is obtained from
   1) variable d_xml through slicing path
   2) variable f_xml through slicing path.

217.  ABB.SrcML.Data.Test.MergeTests.TestMethodDefinitionMerge_DifferentPrefixes

Code with line numbers

This unit test case method tests method definition merge different prefixes .

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable aCpp through slicing path
   2) variable bCpp through slicing path.

218.  ABB.SrcML.Data.Test.MergeTests.TestPartialClassMerge_CSharp

Code with line numbers

This unit test case method tests partial class merge c sharp .

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable a1Xml through slicing path.

(2) typeA is not null.
   typeA is obtained from
   1) variable a1Xml through slicing path.

(3) typeA.ChildStatements.OfType().Count() is equal to 2.
   typeA is obtained from
   1) variable a1Xml through slicing path.

(4) typeA.ChildStatements.OfType().Any() is true.
   typeA is obtained from
   1) variable a1Xml through slicing path.

(5) typeA.ChildStatements.OfType().Any() is true.
   typeA is obtained from
   1) variable a1Xml through slicing path.

219.  ABB.SrcML.Data.Test.MergeTests.TestPartialMethodMerge_CSharp

Code with line numbers

This unit test case method tests partial method merge c sharp .

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable a1Xml through slicing path.

(2) typeA is not null.
   typeA is obtained from
   1) variable a1Xml through slicing path.

(3) typeA.ChildStatements.OfType().Count() is equal to 1.
   typeA is obtained from
   1) variable a1Xml through slicing path.

(4) foo is not null.
   foo is obtained from
   1) variable a1Xml through slicing path.

(5) foo.Name is equal to "Foo".
   foo is obtained from
   1) variable a1Xml through slicing path.

220.  ABB.SrcML.Data.Test.MergeTests.TestUnresolvedParentMerge_ClassEncounteredFirst_Cpp

Code with line numbers

This unit test case method tests unresolved parent merge class encountered first cpp .

This unit test case includes following focal methods:
(1) An assertion in line 568 validating that aDotFoo.GetFullName() is equal to "A.Foo".
(2) An assertion in line 569 validating that aDotBar.GetFullName() is equal to "A.Bar".

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable xmlh through slicing path.

(2) typeA.Name is equal to "A".
   typeA is obtained from
   1) variable xmlh through slicing path.

(3) typeA.ChildStatements.Count() is equal to 0.
   typeA is obtained from
   1) variable xmlh through slicing path.

(4) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable xmlh through slicing path.

(5) typeA.ChildStatements.Count() is equal to 2.
   typeA is obtained from
   1) variable xmlh through slicing path.

(6) aDotFoo.ParentStatement and typeA are same.
   aDotFoo is obtained from
   1) variable xmlh through slicing path.

(7) aDotFoo.ParentStatement and typeA are same.
   aDotFoo is obtained from
   1) variable xmlh through slicing path.

(8) typeA.ParentStatement and globalScope are same.
   typeA is obtained from
   1) variable xmlh through slicing path.

(9) typeA.PrimaryLocation.SourceFileName is equal to "A.h".
   typeA is obtained from
   1) variable xmlh through slicing path.

221.  ABB.SrcML.Data.Test.MergeTests.TestUnresolvedParentMerge_MethodsEncounteredFirst_Cpp

Code with line numbers

This unit test case method tests unresolved parent merge methods encountered first cpp .

This unit test case includes following focal methods:
(1) An assertion in line 610 validating that methodFoo.GetFullName() is equal to "A.Foo".
(2) An assertion in line 612 validating that methodBar.GetFullName() is equal to "A.Bar".
(3) An assertion in line 624 validating that aDotFoo.GetFullName() is equal to "A.Foo".
(4) An assertion in line 625 validating that aDotBar.GetFullName() is equal to "A.Bar".

This unit test case validates that:
(1) globalScope.ChildStatements.Count() is equal to 2.
   globalScope is obtained from
   1) variable xmlcpp through slicing path.

(2) methodFoo.Name is equal to "Foo".
   methodFoo is obtained from
   1) variable xmlcpp through slicing path.

(3) methodFoo.ChildStatements.Count() is equal to 1.
   methodFoo is obtained from
   1) variable xmlcpp through slicing path.

(4) methodBar.Name is equal to "Bar".
   methodBar is obtained from
   1) variable xmlcpp through slicing path.

(5) methodBar.ChildStatements.Count() is equal to 1.
   methodBar is obtained from
   1) variable xmlcpp through slicing path.

(6) methodFoo.Name is equal to "Foo".
   methodFoo is obtained from
   1) variable xmlcpp through slicing path.

(7) methodBar.Name is equal to "Bar".
   methodBar is obtained from
   1) variable xmlcpp through slicing path.

(8) globalScope.ChildStatements.Count() is equal to 1.
   globalScope is obtained from
   1) variable xmlcpp through slicing path.

(9) typeA.ChildStatements.Count() is equal to 2.
   typeA is obtained from
   1) variable xmlcpp through slicing path.

(10) aDotFoo and methodFoo are same.
   aDotFoo is obtained from
   1) variable xmlcpp through slicing path.

(11) aDotBar and methodBar are same.
   aDotBar is obtained from
   1) variable xmlcpp through slicing path.

(12) methodFoo.ParentStatement and typeA are same.
   methodFoo is obtained from
   1) variable xmlcpp through slicing path.

(13) methodBar.ParentStatement and typeA are same.
   methodBar is obtained from
   1) variable xmlcpp through slicing path.

(14) typeA.ParentStatement and globalScope are same.
   typeA is obtained from
   1) variable xmlcpp through slicing path.

(15) typeA.PrimaryLocation.SourceFileName is equal to "A.h".
   typeA is obtained from
   1) variable xmlcpp through slicing path.

222.  ABB.SrcML.Data.Test.MultithreadedAccessTests.TestQueryDuringUpdate

Code with line numbers

This unit test case method tests query during update .

This unit test case validates that:
(1) The unit test does not throw an exception.

223.  ABB.SrcML.Data.Test.NameHelperTests.TestGetLastNameElement

Code with line numbers

This unit test case method tests get last name element .

This unit test case validates that:
(1) lastName and expectedLastName are same.
   lastName is obtained from
   1) variable nameElement through slicing path.

224.  ABB.SrcML.Data.Test.NameHelperTests.TestGetLastNameElement_Null

Code with line numbers

This unit test case method tests get last name element null .

225.  ABB.SrcML.Data.Test.NameHelperTests.TestGetNameElementsExceptLast

Code with line numbers

This unit test case method tests get name elements except last .

This unit test case validates that:
(1) nestedNamesExceptLast.Count() is equal to 1.
   nestedNamesExceptLast is obtained from
   1) variable nameElement through slicing path.

(2) nestedNamesExceptLast.First() and expectedFirstName are same.
   nestedNamesExceptLast is obtained from
   1) variable nameElement through slicing path.

226.  ABB.SrcML.Data.Test.NameHelperTests.TestGetNameElementsExceptLast_Null

Code with line numbers

This unit test case method tests get name elements except last null .

227.  ABB.SrcML.Data.Test.NameHelperTests.TestGetNestedNameElements

Code with line numbers

This unit test case method tests get nested name elements .

This unit test case validates that:
(1) nestedNames.First().Value is equal to "A".
   nestedNames is obtained from
   1) variable nameElement through slicing path.

(2) nestedNames.Last().Value is equal to "B".
   nestedNames is obtained from
   1) variable nameElement through slicing path.

228.  ABB.SrcML.Data.Test.NameHelperTests.TestGetNestedNameElements_NoNestedNames

Code with line numbers

This unit test case method tests get nested name elements no nested names .

This unit test case validates that:
(1) NameHelper.GetNameElementsFromName(nameElement).First() and nameElement are same.
   nameElement is obtained from
   1) variable nameElement through slicing path.

(2) NameHelper.GetLastName(nameElement) is equal to "A".
   nameElement is obtained from
   1) variable nameElement through slicing path.

(3) NameHelper.GetNameElementsExceptLast(nameElement).Count() is equal to 0.
   nameElement is obtained from
   1) variable nameElement through slicing path.

229.  ABB.SrcML.Data.Test.NameHelperTests.TestGetNestedNameElements_Null

Code with line numbers

This unit test case method tests get nested name elements null .

230.  ABB.SrcML.Data.Test.ProgamElementTests.TestSiblingsBeforeSelf

Code with line numbers

This unit test case method tests siblings before self.

This unit test case includes following focal methods:
(1) var fooSiblings = foo.GetSiblingsBeforeSelf().ToList();(@line 52)
This focal method is related to assertions at line 53, line 54, line 55
(2) var aSiblings = a.GetSiblingsBeforeSelf().ToList();(@line 57)
This focal method is related to assertions at line 58

This unit test case validates that:
(1) fooSiblings.Count() is equal to 2.
   fooSiblings is obtained from
   1) variable foo through slicing path.

(2) fooSiblings[0] and a are same.
   fooSiblings is obtained from
   1) variable foo through slicing path.

(3) fooSiblings[1] and plus are same.
   fooSiblings is obtained from
   1) variable foo through slicing path.

(4) aSiblings.Count() is equal to 0.
   aSiblings is obtained from
   1) variable a through slicing path.

231.  ABB.SrcML.Data.Test.ProgamElementTests.TestSiblingsBeforeSelf_MissingChild

Code with line numbers

This unit test case method tests siblings before self missing child.

This unit test case validates that:
(1) The unit test throws an InvalidOperationException exception.

232.  ABB.SrcML.Data.Test.ProgamElementTests.TestSiblingsAfterSelf

Code with line numbers

This unit test case method tests siblings after self.

This unit test case includes following focal methods:
(1) var plusSiblings = plus.GetSiblingsAfterSelf().ToList();(@line 89)
This focal method is related to assertions at line 90, line 91, line 92, line 93
(2) var bSiblings = b.GetSiblingsAfterSelf().ToList();(@line 95)
This focal method is related to assertions at line 96

This unit test case validates that:
(1) plusSiblings.Count() is equal to 3.
   plusSiblings is obtained from
   1) variable plus through slicing path.

(2) plusSiblings[0] and foo are same.
   plusSiblings is obtained from
   1) variable plus through slicing path.

(3) plusSiblings[1] and times are same.
   plusSiblings is obtained from
   1) variable plus through slicing path.

(4) plusSiblings[2] and b are same.
   plusSiblings is obtained from
   1) variable plus through slicing path.

(5) bSiblings.Count() is equal to 0.
   bSiblings is obtained from
   1) variable b through slicing path.

233.  ABB.SrcML.Data.Test.ProgamElementTests.TestSiblingsAfterSelf_MissingChild

Code with line numbers

This unit test case method tests siblings after self missing child.

This unit test case validates that:
(1) The unit test throws an InvalidOperationException exception.

234.  ABB.SrcML.Data.Test.ProgamElementTests.TestGetNamedChildren_Statement

Code with line numbers

This unit test case method tests get named children statement .

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) whileStmt.ChildStatements.Count is equal to 2.
   whileStmt is obtained from
   1) variable xml through slicing path.

(3) allChildren.Count is equal to 1.
   allChildren is obtained from
   1) variable xml through slicing path.

(4) allChildren[0] and localFoo are same.
   allChildren is obtained from
   1) variable xml through slicing path.

(5) whileStmt.GetNamedChildren(fooUse).ToList() is empty.
   whileStmt is obtained from
   1) variable xml through slicing path.

235.  ABB.SrcML.Data.Test.ProgamElementTests.TestGetNamedChildren_IfStatement

Code with line numbers

This unit test case method tests get named children if statement .

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) ifStatement.ChildStatements.Count is equal to 2.
   ifStatement is obtained from
   1) variable xml through slicing path.

(3) ifStatement.ElseStatements.Count is equal to 2.
   ifStatement is obtained from
   1) variable xml through slicing path.

(4) allChildren.Count is equal to 2.
   allChildren is obtained from
   1) variable xml through slicing path.

(5) allChildren[0] and thenFoo are same.
   allChildren is obtained from
   1) variable xml through slicing path.

(6) allChildren[1] and elseFoo are same.
   allChildren is obtained from
   1) variable xml through slicing path.

(7) thenMatches.Count is equal to 1.
   thenMatches is obtained from
   1) variable xml through slicing path.

(8) thenMatches[0] and thenFoo are same.
   thenMatches is obtained from
   1) variable xml through slicing path.

(9) ifStatement.GetNamedChildren(elseFooUse).ToList() is empty.
   ifStatement is obtained from
   1) variable xml through slicing path.

236.  ABB.SrcML.Data.Test.ProgamElementTests.TestGetNamedChildren_TryStatement

Code with line numbers

This unit test case method tests get named children try statement .

This unit test case validates that:
(1) globalScope.ChildStatements.Count is equal to 2.
   globalScope is obtained from
   1) variable xml through slicing path.

(2) tryStatement.ChildStatements.Count is equal to 2.
   tryStatement is obtained from
   1) variable xml through slicing path.

(3) tryStatement.FinallyStatements.Count is equal to 2.
   tryStatement is obtained from
   1) variable xml through slicing path.

(4) allChildren.Count is equal to 2.
   allChildren is obtained from
   1) variable xml through slicing path.

(5) allChildren[0] and tryFoo are same.
   allChildren is obtained from
   1) variable xml through slicing path.

(6) allChildren[1] and finallyFoo are same.
   allChildren is obtained from
   1) variable xml through slicing path.

(7) tryMatches.Count is equal to 1.
   tryMatches is obtained from
   1) variable xml through slicing path.

(8) tryMatches[0] and tryFoo are same.
   tryMatches is obtained from
   1) variable xml through slicing path.

(9) tryStatement.GetNamedChildren(finallyFooUse).ToList() is empty.
   tryStatement is obtained from
   1) variable xml through slicing path.

237.  ABB.SrcML.Data.Test.QueryTests.TestFindMethodCalls_Nested

Code with line numbers

This unit test case method tests find method calls nested .

This unit test case includes following focal methods:
(1) var actual = query.Execute(new SourceLocation(testFile,4,41));(@line 60)
This focal method is related to assertions at line 61, line 62, line 64

This unit test case validates that:
(1) dataProj.WorkingSet.TryObtainReadLock(Timeout.Infinite,globalScope) is true.

(2) actual is not null.
   actual is obtained from
   1) variable globalScope through slicing path.

(3) actual.Count is equal to expected.Length.
   actual is obtained from
   1) variable globalScope through slicing path.

(4) actual[i] and expected[i] are same.
   actual is obtained from
   1) variable globalScope through slicing path.

238.  ABB.SrcML.Data.Test.QueryTests.TestFindMethodCalls_Simple

Code with line numbers

This unit test case method tests find method calls simple .

This unit test case includes following focal methods:
(1) var actual = query.Execute(new SourceLocation(testFile,12,20));(@line 88)
This focal method is related to assertions at line 89, line 90, line 91

This unit test case validates that:
(1) dataProj.WorkingSet.TryObtainReadLock(Timeout.Infinite,globalScope) is true.

(2) actual is not null.
   actual is obtained from
   1) variable query through slicing path.

(3) actual.Count is equal to 1.
   actual is obtained from
   1) variable query through slicing path.

(4) actual[0] and expected are same.
   actual is obtained from
   1) variable query through slicing path.

239.  ABB.SrcML.Data.Test.QueryTests.TestFindScopeForAdjacentMethods

Code with line numbers

This unit test case method tests find scope for adjacent methods.

This unit test case includes following focal methods:
(1) fooMethod = globalScope.GetDescendants().First();(@line 108)
This focal method is related to assertions at line 118, line 119, line 126, line 127, line 133, line 134
(2) An assertion in line 121 validating that query.Execute(startOfMain) and mainMethod are same.
(3) An assertion in line 122 validating that query.Execute(locationInMain) and mainMethod are same.
(4) An assertion in line 129 validating that query.Execute(startOfFoo) and fooMethod are same.
(5) An assertion in line 130 validating that query.Execute(locationInFoo) and fooMethod are same.
(6) An assertion in line 135 validating that query.Execute(lineBetweenMethods) and mainMethod are same.

This unit test case validates that:
(1) dataProj.WorkingSet.TryObtainReadLock(Timeout.Infinite,globalScope) is true.

(2) mainMethod.PrimaryLocation.Contains(startOfMain) is true.
   mainMethod is obtained from
   1) variable globalScope through slicing path.

(3) mainMethod.PrimaryLocation.Contains(locationInMain) is true.
   mainMethod is obtained from
   1) variable globalScope through slicing path.

(4) fooMethod.PrimaryLocation.Contains(startOfFoo) is true.
   fooMethod is obtained from
   1) variable globalScope through slicing path.

(5) fooMethod.PrimaryLocation.Contains(locationInFoo) is true.
   fooMethod is obtained from
   1) variable globalScope through slicing path.

(6) mainMethod.PrimaryLocation.Contains(lineBetweenMethods) is true.
   mainMethod is obtained from
   1) variable globalScope through slicing path.

(7) fooMethod.PrimaryLocation.Contains(lineBetweenMethods) is false.
   fooMethod is obtained from
   1) variable globalScope through slicing path.

240.  ABB.SrcML.Data.Test.QueryTests.TestOverloadedMethodCallResolution

Code with line numbers

This unit test case method tests overloaded method call resolution .

This unit test case includes following focal methods:
(1) var foo0 = query.Execute(startOffoo0);(@line 153)
This focal method is related to assertions at line 154, line 155
(2) var foo1 = query.Execute(startOffoo1);(@line 157)
This focal method is related to assertions at line 158, line 159
(3) var callFooMethodWithoutParameters = query.Execute(startOfCallFooWithoutParameters);(@line 161)
This focal method is related to assertions at line 162
(4) var callFooMethodWithParameter = query.Execute(startOfCallFooWithParameter);(@line 164)
This focal method is related to assertions at line 165, line 167, line 168, line 170, line 171, line 175, line 176, line 180, line 181

This unit test case validates that:
(1) foo0.Name is equal to "foo".
   foo0 is obtained from
   1) variable query through slicing path.

(2) foo0.Parameters.Count is equal to 0.
   foo0 is obtained from
   1) variable query through slicing path.

(3) foo1.Name is equal to "foo".
   foo1 is obtained from
   1) variable query through slicing path.

(4) foo1.Parameters.Count is equal to 1.
   foo1 is obtained from
   1) variable query through slicing path.

(5) callFooMethodWithoutParameters.Name is equal to "CallFooWithoutParameters".
   callFooMethodWithoutParameters is obtained from
   1) variable query through slicing path.

(6) callFooMethodWithParameter.Name is equal to "CallFooWithParameter".
   callFooMethodWithParameter is obtained from
   1) variable query through slicing path.

(7) callFooMethodWithoutParameters.ContainsCallTo(foo0) is true.
   callFooMethodWithoutParameters is obtained from
   1) variable query through slicing path.

(8) ! callFooMethodWithoutParameters.ContainsCallTo(foo1) is true.
   callFooMethodWithoutParameters is obtained from
   1) variable query through slicing path.

(9) callFooMethodWithParameter.ContainsCallTo(foo1) is true.
   callFooMethodWithParameter is obtained from
   1) variable query through slicing path.

(10) ! callFooMethodWithParameter.ContainsCallTo(foo0) is true.
   callFooMethodWithParameter is obtained from
   1) variable query through slicing path.

(11) matches.Count is equal to 1.
   matches is obtained from
   1) variable query through slicing path.

(12) matches[0] and foo0 are same.
   matches is obtained from
   1) variable query through slicing path.

(13) matches.Count is equal to 1.
   matches is obtained from
   1) variable query through slicing path.

(14) matches[0] and foo1 are same.
   matches is obtained from
   1) variable query through slicing path.

241.  ABB.SrcML.Data.Test.QueryTests.TestOverloadedMethodCallResolutionWithCallingObject

Code with line numbers

This unit test case method tests overloaded method call resolution with calling object.

This unit test case includes following focal methods:
(1) var foo0 = query.Execute(startOffoo0);(@line 200)
This focal method is related to assertions at line 201, line 202
(2) var foo1 = query.Execute(startOffoo1);(@line 204)
This focal method is related to assertions at line 205, line 206
(3) var runFoo0 = query.Execute(startOfRunFoo0);(@line 208)
This focal method is related to assertions at line 209
(4) var runFoo1 = query.Execute(startOfRunFoo1);(@line 211)
This focal method is related to assertions at line 212, line 214, line 215, line 217, line 218, line 222, line 223, line 227, line 228

This unit test case validates that:
(1) foo0.Name is equal to "foo".
   foo0 is obtained from
   1) variable query through slicing path.

(2) foo0.Parameters.Count is equal to 0.
   foo0 is obtained from
   1) variable query through slicing path.

(3) foo1.Name is equal to "foo".
   foo1 is obtained from
   1) variable query through slicing path.

(4) foo1.Parameters.Count is equal to 1.
   foo1 is obtained from
   1) variable query through slicing path.

(5) runFoo0.Name is equal to "runFoo0".
   runFoo0 is obtained from
   1) variable query through slicing path.

(6) runFoo1.Name is equal to "runFoo1".
   runFoo1 is obtained from
   1) variable query through slicing path.

(7) runFoo0.ContainsCallTo(foo0) is true.
   runFoo0 is obtained from
   1) variable query through slicing path.

(8) ! runFoo0.ContainsCallTo(foo1) is true.
   runFoo0 is obtained from
   1) variable query through slicing path.

(9) runFoo1.ContainsCallTo(foo1) is true.
   runFoo1 is obtained from
   1) variable query through slicing path.

(10) ! runFoo1.ContainsCallTo(foo0) is true.
   runFoo1 is obtained from
   1) variable query through slicing path.

(11) matches.Count is equal to 1.
   matches is obtained from
   1) variable query through slicing path.

(12) matches[0] and foo0 are same.
   matches is obtained from
   1) variable query through slicing path.

(13) matches.Count is equal to 1.
   matches is obtained from
   1) variable query through slicing path.

(14) matches[0] and foo1 are same.
   matches is obtained from
   1) variable query through slicing path.

242.  ABB.SrcML.Data.Test.RealWorldTests.TestCompleteWorkingSet

Code with line numbers

This unit test case method tests complete working set .

This unit test case validates that:
(1) project.WorkingSet.TryObtainReadLock(5000,globalNamespace) is true.

243.  ABB.SrcML.Data.Test.RealWorldTests.TestSerialization

Code with line numbers

This unit test case method tests serialization .

244.  ABB.SrcML.Data.Test.RealWorldTests.TestCompleteWorkingSet_SingleCore

Code with line numbers

This unit test case method tests complete working set single core .

This unit test case validates that:
(1) project.WorkingSet.TryObtainReadLock(5000,globalScope) is true.

(2) globalScope is not null.

245.  ABB.SrcML.Data.Test.SerializationTests.TestRoundTrip

Code with line numbers

This unit test case method tests round trip .

This unit test case includes following focal methods:
(1) An assertion in line 46 validating that srcMLGenerator.Generate(sourceFilePath,DefaultInputName) is true.

246.  ABB.SrcML.Data.Test.SerializationTests.TestRoundTripWithDefaultExtension

Code with line numbers

This unit test case method tests round trip with default extension.

This unit test case includes following focal methods:
(1) An assertion in line 65 validating that srcMLGenerator.Generate(sourceFilePath,DefaultInputName) is true.

247.  ABB.SrcML.Data.Test.SourceLocationTests.TestContains_DifferentLines

Code with line numbers

This unit test case method tests contains different lines .

This unit test case includes following focal methods:
(1) An assertion in line 13 validating that outer.Contains(inner) is true.
(2) An assertion in line 14 validating that inner.Contains(outer) is false.

248.  ABB.SrcML.Data.Test.SourceLocationTests.TestContains_Overlapping

Code with line numbers

This unit test case method tests contains overlapping .

This unit test case includes following focal methods:
(1) An assertion in line 21 validating that outer.Contains(inner) is false.
(2) An assertion in line 22 validating that inner.Contains(outer) is false.

249.  ABB.SrcML.Data.Test.SourceLocationTests.TestContains_Point

Code with line numbers

This unit test case method tests contains point .

This unit test case includes following focal methods:
(1) An assertion in line 29 validating that outer.Contains(inner) is true.
(2) An assertion in line 30 validating that inner.Contains(outer) is false.

250.  ABB.SrcML.Data.Test.SourceLocationTests.TestContains_SameLine

Code with line numbers

This unit test case method tests contains same line .

This unit test case includes following focal methods:
(1) An assertion in line 37 validating that outer.Contains(inner) is true.
(2) An assertion in line 38 validating that inner.Contains(outer) is false.

251.  ABB.SrcML.Data.Test.SrcMLLocationTests.TestContains_NoSibling

Code with line numbers

This unit test case method tests contains no sibling .

This unit test case includes following focal methods:
(1) An assertion in line 31 validating that classLoc.Contains(methodLoc) is true.

252.  ABB.SrcML.Data.Test.SrcMLLocationTests.TestContains_Reflexive

Code with line numbers

This unit test case method tests contains reflexive .

This unit test case includes following focal methods:
(1) An assertion in line 45 validating that classLoc.Contains(classLoc) is true.

253.  ABB.SrcML.Data.Test.SrcMLLocationTests.TestContains_Sibling

Code with line numbers

This unit test case method tests contains sibling .

This unit test case includes following focal methods:
(1) An assertion in line 69 validating that methodLoc.Contains(declLoc) is true.

254.  ABB.SrcML.Data.Test.SrcMLLocationTests.TestContains_TwoLevel

Code with line numbers

This unit test case method tests contains two level .

This unit test case includes following focal methods:
(1) An assertion in line 89 validating that namespaceLoc.Contains(methodLoc) is true.

255.  ABB.SrcML.Data.Test.SrcMLLocationTests.TestGetXElement

Code with line numbers

This unit test case method tests get x element .

This unit test case includes following focal methods:
(1) var unit = archive.GetXElementForSourceFile(sourcePath);(@line 98)
This focal method is related to assertions at line 99, line 101
(2) var globalScope = parser.ParseFileUnit(unit);(@line 104)
This focal method is related to assertions at line 106, line 109, line 110, line 111, line 112

This unit test case validates that:
(1) unit is not null.
   unit is obtained from
   1) variable archive through slicing path
   2) variable sourcePath through slicing path.

(2) classElement is not null.
   classElement is obtained from
   1) variable archive through slicing path
   2) variable sourcePath through slicing path.

(3) typeDefinition is not null.
   typeDefinition is obtained from
   1) variable parser through slicing path
   2) variable archive through slicing path
   3) variable sourcePath through slicing path.

(4) element is not null.
   element is obtained from
   1) variable parser through slicing path
   2) variable archive through slicing path
   3) variable sourcePath through slicing path
   4) variable archive through slicing path.

(5) element.GetSrcLineNumber() is equal to classElement.GetSrcLineNumber().
   element is obtained from
   1) variable parser through slicing path
   2) variable archive through slicing path
   3) variable sourcePath through slicing path
   4) variable archive through slicing path.

(6) element.GetSrcLinePosition() is equal to classElement.GetSrcLinePosition().
   element is obtained from
   1) variable parser through slicing path
   2) variable archive through slicing path
   3) variable sourcePath through slicing path
   4) variable archive through slicing path.

(7) element.GetXPath() is equal to classElement.GetXPath().
   element is obtained from
   1) variable parser through slicing path
   2) variable archive through slicing path
   3) variable sourcePath through slicing path
   4) variable archive through slicing path.

256.  ABB.SrcML.Data.Test.StatementExtensionTests.TestGetCallsTo_Simple

Code with line numbers

This unit test case method tests get calls to simple.

This unit test case validates that:
(1) mainMethod.ContainsCallTo(fooMethod) is true.
   mainMethod is obtained from
   1) variable xml through slicing path.

(2) fooCalls.Count is equal to 1.
   fooCalls is obtained from
   1) variable xml through slicing path.

(3) fooCalls[0] and expectedFooCall are same.
   fooCalls is obtained from
   1) variable xml through slicing path.

(4) callsToFoo.Count is equal to 1.
   callsToFoo is obtained from
   1) variable xml through slicing path.

(5) callsToFoo[0] and expectedFooCall are same.
   callsToFoo is obtained from
   1) variable xml through slicing path.

257.  ABB.SrcML.Data.Test.StatementExtensionTests.TestGetCallsTo_Multiple

Code with line numbers

This unit test case method tests get calls to multiple.

This unit test case validates that:
(1) methodFoo.ContainsCallTo(methodBar) is true.
   methodFoo is obtained from
   1) variable xml through slicing path.

(2) methodFoo.GetCallsTo(methodBar,true).Count() is equal to 2.
   methodFoo is obtained from
   1) variable xml through slicing path.

(3) methodBar.ContainsCallTo(methodStar) is true.
   methodBar is obtained from
   1) variable xml through slicing path.

(4) methodBar.GetCallsTo(methodStar,true).Count() is equal to 1.
   methodBar is obtained from
   1) variable xml through slicing path.

(5) methodFoo.ContainsCallTo(methodStar) is false.
   methodFoo is obtained from
   1) variable xml through slicing path.

(6) methodBar.ContainsCallTo(methodFoo) is false.
   methodBar is obtained from
   1) variable xml through slicing path.

(7) methodStar.ContainsCallTo(methodFoo) is false.
   methodStar is obtained from
   1) variable xml through slicing path.

(8) methodStar.ContainsCallTo(methodBar) is false.
   methodStar is obtained from
   1) variable xml through slicing path.

258.  ABB.SrcML.Data.Test.StatementExtensionTests.TestGetCallsTo_Masking

Code with line numbers

This unit test case method tests get calls to masking.

This unit test case validates that:
(1) bazMethod.ContainsCallTo(barFooMethod) is true.
   bazMethod is obtained from
   1) variable xml through slicing path.

(2) bazMethod.ContainsCallTo(globalFooMethod) is false.
   bazMethod is obtained from
   1) variable xml through slicing path.

(3) fooCalls.Count is equal to 1.
   fooCalls is obtained from
   1) variable xml through slicing path.

(4) fooCalls[0] and expectedFooCall are same.
   fooCalls is obtained from
   1) variable xml through slicing path.

(5) globalFooMethod.GetCallsToSelf() is empty.
   globalFooMethod is obtained from
   1) variable xml through slicing path.

(6) barFooMethod.GetCallsToSelf().Count() is equal to 1.
   barFooMethod is obtained from
   1) variable xml through slicing path.

259.  ABB.SrcML.Data.Test.StatementExtensionTests.TestGetCallsTo_NonRecursive

Code with line numbers

This unit test case method tests get calls to non recursive.

This unit test case validates that:
(1) ifStmt.ContainsCallTo(quxMethod) is true.
   ifStmt is obtained from
   1) variable xml through slicing path.

(2) ifStmt.ContainsCallTo(xyzzyMethod) is true.
   ifStmt is obtained from
   1) variable xml through slicing path.

(3) ifStmt.GetCallsTo(quxMethod,false).Count() is equal to 1.
   ifStmt is obtained from
   1) variable xml through slicing path.

(4) ifStmt.GetCallsTo(xyzzyMethod,false).Count() is equal to 0.
   ifStmt is obtained from
   1) variable xml through slicing path.

260.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestCursorMonitoring

Code with line numbers

This unit test case method tests cursor monitoring .

This unit test case validates that:
(1) project is not null.

(2) "Document" is equal to window.Kind.

(3) "Class1.cs" is equal to document.Name.

(4) 15 is equal to CMservice.CurrentLineNumber.

261.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestMethodTrackingsOnCursorMoving

Code with line numbers

This unit test case method tests method trackings on cursor moving.

This unit test case validates that:
(1) project is not null.

(2) archive is not null.

(3) dataarchive is not null.

(4) "Document" is equal to window.Kind.

(5) "Class1.cs" is equal to document.Name.

(6) 15 is equal to MTservice.CurrentLineNumber.

(7) "member1" is equal to MTservice.CurrentMethod.Name.

(8) 13 is equal to MTservice.CurrentMethod.StartLineNumber.

(9) paranames.Count is equal to MTservice.CurrentMethod.ParameterNames.Count.

(10) paranames[i] is equal to MTservice.CurrentMethod.ParameterNames[i].

(11) paratypes.Count is equal to MTservice.CurrentMethod.ParameterTypes.Count.

(12) paratypes[i] is equal to MTservice.CurrentMethod.ParameterTypes[i].

262.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestNavHistoryListInMethodTracking

Code with line numbers

This unit test case method tests nav history list in method tracking.

This unit test case validates that:
(1) project is not null.

(2) archive is not null.

(3) dataarchive is not null.

(4) 1 is equal to MTservice.NavigatedMethods.Count.

(5) MTservice.CurrentMethod is equal to MTservice.NavigatedMethods[0].

(6) 1 is equal to MTservice.NavigatedMethods.Count.

(7) MTservice.CurrentMethod is equal to MTservice.NavigatedMethods[0].

(8) "member2" is equal to MTservice.CurrentMethod.Name.

(9) 20 is equal to MTservice.CurrentMethod.StartLineNumber.

(10) 0 is equal to MTservice.CurrentMethod.ParameterNames.Count.

(11) 2 is equal to MTservice.NavigatedMethods.Count.

(12) oldMethod is equal to MTservice.NavigatedMethods[0].

(13) MTservice.CurrentMethod is equal to MTservice.NavigatedMethods[1].

263.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestMethodTrackingsOnFileDelete

Code with line numbers

This unit test case method tests method trackings on file delete.

This unit test case validates that:
(1) project is not null.

(2) archive is not null.

(3) dataarchive is not null.

(4) archive.ContainsFile(newFilePath) is true.

(5) dataarchive.ContainsFile(newFilePath) is true.

(6) resetEvent.WaitOne(scanIntervalMs) is true.

(7) "foo" is equal to navigatedMethod2.Name.

(8) 11 is equal to navigatedMethod2.StartLineNumber.

(9) 0 is equal to navigatedMethod2.ParameterNames.Count.

(10) 2 is equal to MTservice.NavigatedMethods.Count.

(11) navigatedMethod1 is equal to MTservice.NavigatedMethods[0].

(12) navigatedMethod2 is equal to MTservice.NavigatedMethods[1].

(13) resetEvent.WaitOne(scanIntervalMs) is true.

(14) 1 is equal to MTservice.NavigatedMethods.Count.

(15) navigatedMethod1 is equal to MTservice.NavigatedMethods[0].

(16) "" is equal to MTservice.CurrentMethod.Name.

264.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestMethodTrackingsOnFileChange

Code with line numbers

This unit test case method tests method trackings on file change.

This unit test case validates that:
(1) project is not null.

(2) archive is not null.

(3) dataarchive is not null.

(4) resetEvent.WaitOne(scanIntervalMs) is true.

(5) resetEvent.WaitOne(scanIntervalMs) is true.

(6) 1 is equal to MTservice.NavigatedMethods.Count.

(7) MTservice.NavigatedMethods[0].SignatureEquals(navigatedMethod1) is true.

(8) 15 is equal to MTservice.NavigatedMethods[0].StartLineNumber.

265.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestDataServiceStartup

Code with line numbers

This unit test case method tests data service startup .

This unit test case validates that:
(1) archive is not null.

(2) "" is not equal to storagepath.

(3) dataarchive is not null.

(4) workingset is not null.

266.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.MethodTrackServiceTests.TestMtServiceStartup

Code with line numbers

This unit test case method tests mt service startup .

This unit test case validates that:
(1) method is not null.

(2) 0 is equal to line.

(3) 0 is equal to column.

267.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCPlusPlusTests.TestCppFileOperations

Code with line numbers

This unit test case method tests cpp file operations .

This unit test case validates that:
(1) project is not null.

(2) archive is not null.

(3) resetEvent.WaitOne(scanIntervalMs) is true.

(4) archive.ContainsFile(expectedFilePath) is true.

(5) archive.IsOutdated(expectedFilePath) is false.

(6) resetEvent.WaitOne(scanIntervalMs) is true.

(7) archive.IsOutdated(expectedFilePath) is false.

268.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCPlusPlusTests.TestCppProjectOperations

Code with line numbers

This unit test case method tests cpp project operations .

This unit test case validates that:
(1) resetEvent.WaitOne(scanIntervalMs) is true.

(2) resetEvent.WaitOne(scanIntervalMs) is true.

(3) resetEvent.WaitOne(scanIntervalMs) is true.

(4) resetEvent.WaitOne(scanIntervalMs) is true.

(5) File.Exists(expectedFile) is true.

(6) archive.ContainsFile(expectedFile) is true.

(7) archive.IsOutdated(expectedFile) is false.

(8) resetEvent.WaitOne(scanIntervalMs * 2) is true.

(9) archive.ContainsFile(expectedFile) is false.

269.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCPlusPlusTests.TestCppServiceStartup

Code with line numbers

This unit test case method tests cpp service startup .

This unit test case validates that:
(1) archive is not null.

(2) archive.FileUnits.Count() is equal to 4.

270.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCSharpTests.TestCsFileOperations

Code with line numbers

This unit test case method tests cs file operations .

This unit test case validates that:
(1) project is not null.

(2) archive is not null.

(3) resetEvent.WaitOne(scanIntervalMs) is true.

(4) archive.ContainsFile(expectedFilePath) is true.

(5) archive.IsOutdated(expectedFilePath) is false.

(6) resetEvent.WaitOne(scanIntervalMs) is true.

(7) archive.IsOutdated(expectedFilePath) is false.

(8) resetEvent.WaitOne(scanIntervalMs) is true.

271.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCSharpTests.TestCsProjectOperations

Code with line numbers

This unit test case method tests cs project operations .

This unit test case validates that:
(1) resetEvent.WaitOne(scanIntervalMs) is true.

(2) resetEvent.WaitOne(scanIntervalMs) is true.

(3) File.Exists(expectedFile) is true.

(4) archive.ContainsFile(expectedFile) is true.

(5) archive.IsOutdated(expectedFile) is false.

(6) resetEvent.WaitOne(scanIntervalMs * 2) is true.

(7) archive.ContainsFile(expectedFile) is false.

272.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServiceCSharpTests.TestCsServiceStartup

Code with line numbers

This unit test case method tests cs service startup .

This unit test case validates that:
(1) archive is not null.

(2) archive.FileUnits.Count() is equal to 2.

273.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServicePackageIntegrationTests.FileLevelIncrementalUpdateTest

Code with line numbers

This unit test case method tests file level incremental update test .

274.  ABB.SrcML.VisualStudio.SrcMLService.IntegrationTests.SrcMLServicePackageIntegrationTests.ProjectLevelIncrementalUpdateTest

Code with line numbers

This unit test case method tests project level incremental update test .

275.  ABB.SrcML.VisualStudio.SrcMLService.UnitTests.MenuItemTests.MenuItemTest.InitializeMenuCommand

Code with line numbers

This unit test case method tests initialize menu command .

This unit test case validates that:
(1) package is not null.

(2) package.SetSite(serviceProvider) is equal to 0.

(3) info is not null.

276.  ABB.SrcML.VisualStudio.SrcMLService.UnitTests.MenuItemTests.MenuItemTest.MenuItemCallback

Code with line numbers

This unit test case method tests handle menu item callback .

This unit test case validates that:
(1) package is not null.

(2) package.SetSite(serviceProvider) is equal to 0.

(3) info is not null.
   info is obtained from
   1) variable package through slicing path.

277.  ABB.SrcML.VisualStudio.SrcMLService.UnitTests.SrcMLServicePackageTests.CreateInstance

Code with line numbers

This unit test case method tests create instance .

278.  ABB.SrcML.VisualStudio.SrcMLService.UnitTests.SrcMLServicePackageTests.IsIVsPackage

Code with line numbers

This unit test case method tests check if srcmlservicepackagetests is i vs package .

This unit test case validates that:
(1) package as IVsPackage is not null.

279.  ABB.SrcML.VisualStudio.SrcMLService.UnitTests.SrcMLServicePackageTests.SetSite

Code with line numbers

This unit test case method tests set site .

This unit test case validates that:
(1) package is not null.

(2) package.SetSite(serviceProvider) is equal to 0.

(3) package.SetSite(null) is equal to 0.

280.  ABB.SrcML.VisualStudio.SrcMLService.UnitTests.SrcMLServicePackageTests.SetSiteSimple

Code with line numbers

This unit test case method tests set site simple .

This unit test case validates that:
(1) Microsoft.VisualStudio.ErrorHandler.Succeeded(result) is true.

281.  ABB.SrcML.VisualStudio.SrcMLService.UnitTests.SrcMLServicePackageTests.GetGlobalServiceSimple

Code with line numbers

This unit test case method tests get global service simple .

This unit test case validates that:
(1) Microsoft.VisualStudio.ErrorHandler.Succeeded(result) is true.

(2) o is not null.
   o is obtained from
   1) variable packageObject through slicing path
   2) variable packageObject through slicing path.

(3) service is not null.
   service is obtained from
   1) variable packageObject through slicing path
   2) variable packageObject through slicing path.

282.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestAddDuplicateDirectory

Code with line numbers

This unit test case method tests add duplicate directory .

This unit test case includes following focal methods:
(1) monitor.AddDirectory(testFolder);(@line 59)
This focal method is related to assertions at line 62

This unit test case validates that:
(1) are.WaitOne(WaitInterval) is true.

(2) are.WaitOne(WaitInterval) is false.

(3) monitor.MonitoredDirectories.Count is equal to 1.

283.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestAddSubdirectory

Code with line numbers

This unit test case method tests add subdirectory .

This unit test case validates that:
(1) are.WaitOne(WaitInterval) is true.

284.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestAddSimilarDirectory

Code with line numbers

This unit test case method tests add similar directory .

This unit test case validates that:
(1) are.WaitOne(WaitInterval) is true.

(2) are.WaitOne(WaitInterval) is true.

285.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestEmptyMonitor

Code with line numbers

This unit test case method tests empty monitor .

286.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestExcludedDirectory

Code with line numbers

This unit test case method tests excluded directory .

This unit test case validates that:
(1) monitor.GetFilesFromSource().Count is equal to 0.

287.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestExcludedFiles

Code with line numbers

This unit test case method tests excluded files .

This unit test case validates that:
(1) monitor.GetFilesFromSource().Count is equal to 0.

288.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestForbiddenDirectory

Code with line numbers

This unit test case method tests forbidden directory .

289.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestFileChanges

Code with line numbers

This unit test case method tests file changes .

This unit test case includes following focal methods:
(1) An assertion in line 176 validating that archive.GetLastModifiedTime(expectedFileName) is equal to expectedLastWriteTime.

This unit test case validates that:
(1) are.WaitOne(WaitInterval) is true.

(2) are.WaitOne(WaitInterval) is true.

(3) are.WaitOne(WaitInterval) is true.

290.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestFileSaveAndRestore

Code with line numbers

This unit test case method tests file save and restore .

This unit test case validates that:
(1) monitor.MonitoredDirectories.Count is equal to 1.

(2) monitor.MonitoredDirectories[0].TrimEnd(Path.DirectorySeparatorChar) is equal to Path.GetFullPath(testFolder).

(3) monitor.MonitoredDirectories.Count is equal to 1.

(4) monitor.MonitoredDirectories[0].TrimEnd(Path.DirectorySeparatorChar) is equal to Path.GetFullPath(testFolder).

291.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestIsMonitoringFile

Code with line numbers

This unit test case method tests is monitoring file .

This unit test case includes following focal methods:
(1) An assertion in line 209 validating that monitor.IsMonitoringFile(fileName) is true.
(2) An assertion in line 210 validating that monitor.IsMonitoringFile(Path.GetFullPath(fileName)) is true.

292.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestRemoveDirectory

Code with line numbers

This unit test case method tests remove directory .

This unit test case includes following focal methods:
(1) An assertion in line 227 validating that monitor.GetArchivedFiles().Count() is equal to numStartingFiles.
(2) An assertion in line 230 validating that monitor.GetArchivedFiles().Count() is equal to numStartingFiles.
(3) An assertion in line 245 validating that monitor.GetArchivedFiles().Count() is equal to 0.

This unit test case validates that:
(1) directoryResetEvent.WaitOne(WaitInterval) is true.

(2) directoryResetEvent.WaitOne(WaitInterval) is false.

(3) directoryResetEvent.WaitOne(WaitInterval) is true.

(4) fileDeletionResetEvent.WaitOne(WaitInterval) is true.

(5) File.Exists(fileName) is true.

293.  ABB.SrcML.Test.DirectoryScanningMonitorTests.TestStartup

Code with line numbers

This unit test case method tests startup .

This unit test case includes following focal methods:
(1) An assertion in line 273 validating that archive.GetFiles().Count() is equal to numStartingFiles.
(2) An assertion in line 276 validating that archive.ContainsFile(fileName) is true.
(3) An assertion in line 277 validating that archive.IsOutdated(fileName) is false.
(4) An assertion in line 278 validating that archive.GetLastModifiedTime(fileName) is equal to File.GetLastWriteTime(fileName).

This unit test case validates that:
(1) are.WaitOne(WaitInterval) is true.

(2) are.WaitOne(WaitInterval) is true.

294.  ABB.SrcML.Test.ExternalTests.FileWithBom

Code with line numbers

This unit test case method tests file external tests with bom.

295.  ABB.SrcML.Test.ExternalTests.JavaClassWithConstructor

Code with line numbers

This unit test case method tests java class with constructor.

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("external\\ClassWithConstructor.java","external_xml\\ClassWithConstructor.java.xml");(@line 83)
This focal method is related to assertions at line 88

This unit test case validates that:
(1) classBlock.Elements(SRC.Function).Count() is equal to 1.
   classBlock is obtained from
   1) variable srcmlObject through slicing path.

296.  ABB.SrcML.Test.ExternalTests.DeclStmtWithTwoDecl

Code with line numbers

This unit test case method tests decl stmt with two decl.

This unit test case includes following focal methods:
(1) var xml = srcmlObject.GenerateSrcMLFromString(source);(@line 97)
This focal method is related to assertions at line 103, line 104

This unit test case validates that:
(1) nameCount is equal to 2.
   nameCount is obtained from
   1) variable srcmlObject through slicing path
   2) variable source through slicing path.

(2) initCount is equal to 2.
   initCount is obtained from
   1) variable srcmlObject through slicing path
   2) variable source through slicing path.

297.  ABB.SrcML.Test.ExternalTests.FunctionWithElseInCpp

Code with line numbers

This unit test case method tests function external tests with else in cpp.

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("external\\cpp_parsing_error.c","external_xml\\cpp_parsing_error.c.xml");(@line 112)
This focal method is related to assertions at line 114

This unit test case validates that:
(1) doc.FileUnits.First().Elements().Count() is equal to 1.
   doc is obtained from
   1) variable srcmlObject through slicing path.

298.  ABB.SrcML.Test.ExternalTests.MacroWithoutSemicolon

Code with line numbers

This unit test case method tests handle macro without semicolon .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("external\\MacroWithoutSemicolon.cpp","external_xml\\MacroWithoutSemicolon.cpp.xml");(@line 122)
This focal method is related to assertions at line 124

This unit test case validates that:
(1) doc.FileUnits.First().Descendants(SRC.If).Count() is equal to 2.
   doc is obtained from
   1) variable srcmlObject through slicing path.

299.  ABB.SrcML.Test.ExternalTests.DestructorWithIfStatement

Code with line numbers

This unit test case method tests handle destructor with if statement .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("external\\DestructorWithIfStatement.cpp","external_xml\\DestructorWithIfStatement.cpp.xml");(@line 132)
This focal method is related to assertions at line 134

This unit test case validates that:
(1) doc.FileUnits.First().Descendants(SRC.Destructor).Count() is equal to 1.
   doc is obtained from
   1) variable srcmlObject through slicing path.

300.  ABB.SrcML.Test.ExternalTests.MethodWithFunctionPointerAsParameter

Code with line numbers

This unit test case method tests handle method with function pointer as parameter .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("external\\MethodWithFunctionPointerParameters.cpp","external_xml\\MethodWithFunctionPointerParameters.cpp.xml");(@line 142)
This focal method is related to assertions at line 144

This unit test case validates that:
(1) doc.FileUnits.First().Element(SRC.Function).Element(SRC.ParameterList).Elements(SRC.Parameter).Count() is equal to 2.
   doc is obtained from
   1) variable srcmlObject through slicing path.

301.  ABB.SrcML.Test.ExternalTests.TestCSharpExpressionWithDefaultKeyword

Code with line numbers

This unit test case method tests c sharp expression with default keyword.

This unit test case validates that:
(1) classB is not null.
   classB is obtained from
   1) variable fileUnit through slicing path.

(2) classB.Descendants(SRC.Function).Count() is equal to 2.
   classB is obtained from
   1) variable fileUnit through slicing path.

302.  ABB.SrcML.Test.ExternalTests.TestCppConstTypeModifier

Code with line numbers

This unit test case method tests cpp const type modifier .

This unit test case validates that:
(1) typeWithConst is not null.
   typeWithConst is obtained from
   1) variable fileUnit through slicing path.

(2) constModifier is not null.
   constModifier is obtained from
   1) variable fileUnit through slicing path.

(3) constModifier.Value is equal to "const".
   constModifier is obtained from
   1) variable fileUnit through slicing path.

303.  ABB.SrcML.Test.ExternalTests.TestCppStaticTypeModifier

Code with line numbers

This unit test case method tests cpp static type modifier .

This unit test case validates that:
(1) typeWithStatic is not null.
   typeWithStatic is obtained from
   1) variable fileUnit through slicing path.

(2) staticModifier is not null.
   staticModifier is obtained from
   1) variable fileUnit through slicing path.

(3) staticModifier.Value is equal to "static".
   staticModifier is obtained from
   1) variable fileUnit through slicing path.

304.  ABB.SrcML.Test.ExternalTests.TestCSharpExpressionWithSet

Code with line numbers

This unit test case method tests c sharp expression with set.

This unit test case validates that:
(1) method is not null.
   method is obtained from
   1) variable fileUnit through slicing path.

(2) methodBlock is not null.
   methodBlock is obtained from
   1) variable fileUnit through slicing path.

(3) methodBlock.Elements(SRC.ExpressionStatement).Count() is equal to 1.
   methodBlock is obtained from
   1) variable fileUnit through slicing path.

305.  ABB.SrcML.Test.ExternalTests.TestCSharpExpressionWithGet

Code with line numbers

This unit test case method tests c sharp expression with get.

This unit test case validates that:
(1) method is not null.
   method is obtained from
   1) variable fileUnit through slicing path.

(2) methodBlock is not null.
   methodBlock is obtained from
   1) variable fileUnit through slicing path.

(3) methodBlock.Elements(SRC.ExpressionStatement).Count() is equal to 1.
   methodBlock is obtained from
   1) variable fileUnit through slicing path.

306.  ABB.SrcML.Test.ExternalTests.TestCSharpExpressionWithAdd

Code with line numbers

This unit test case method tests c sharp expression with add.

This unit test case validates that:
(1) method is not null.
   method is obtained from
   1) variable fileUnit through slicing path.

(2) methodBlock is not null.
   methodBlock is obtained from
   1) variable fileUnit through slicing path.

(3) methodBlock.Elements(SRC.ExpressionStatement).Count() is equal to 1.
   methodBlock is obtained from
   1) variable fileUnit through slicing path.

307.  ABB.SrcML.Test.ExternalTests.TestCSharpExpressionWithRemove

Code with line numbers

This unit test case method tests c sharp expression with remove.

This unit test case validates that:
(1) method is not null.
   method is obtained from
   1) variable fileUnit through slicing path.

(2) methodBlock is not null.
   methodBlock is obtained from
   1) variable fileUnit through slicing path.

(3) methodBlock.Elements(SRC.ExpressionStatement).Count() is equal to 1.
   methodBlock is obtained from
   1) variable fileUnit through slicing path.

308.  ABB.SrcML.Test.ExternalTests.TestCSharpUsingStatement

Code with line numbers

This unit test case method tests c sharp using statement .

This unit test case validates that:
(1) usingBlock is not null.
   usingBlock is obtained from
   1) variable fileUnit through slicing path.

(2) usingBlock.Elements(SRC.Declaration).Count() is equal to 1.
   usingBlock is obtained from
   1) variable fileUnit through slicing path.

(3) usingBlock.Elements(SRC.Block).Count() is equal to 1.
   usingBlock is obtained from
   1) variable fileUnit through slicing path.

309.  ABB.SrcML.Test.HelperTests.GetXPathExtensionTest

Code with line numbers

This unit test case method tests get x path extension test .

This unit test case validates that:
(1) elementsFromXPath.Count() is equal to 1.
   elementsFromXPath is obtained from
   1) variable unit through slicing path
   2) variable element through slicing path.

(2) elementsFromXPath.First() is equal to element.
   elementsFromXPath is obtained from
   1) variable unit through slicing path
   2) variable element through slicing path.

310.  ABB.SrcML.Test.IConcurrencyStrategyTests.TestSingleCoreStrategy

Code with line numbers

This unit test case method tests single core strategy .

This unit test case validates that:
(1) strategy.ComputeAvailableCores() is equal to 1.

311.  ABB.SrcML.Test.IConcurrencyStrategyTests.TestZeroCores

Code with line numbers

This unit test case method tests zero cores .

312.  ABB.SrcML.Test.IConcurrencyStrategyTests.TestConservativeAbbCoreStrategy

Code with line numbers

This unit test case method tests conservative abb core strategy .

This unit test case validates that:
(1) strategy.ComputeAvailableCores() is equal to tests[key].
   strategy is obtained from
   1) variable key through slicing path.

313.  ABB.SrcML.Test.LastModifiedArchiveTests.TestAddUpdateDelete

Code with line numbers

This unit test case method tests add update delete .

This unit test case includes following focal methods:
(1) An assertion in line 59 validating that archive.ContainsFile(fileFoo) is true.
(2) An assertion in line 60 validating that archive.IsOutdated(fileFoo) is false.
(3) An assertion in line 64 validating that archive.IsOutdated(fileFoo) is true.
(4) An assertion in line 69 validating that archive.IsOutdated(fileFoo) is true.
(5) An assertion in line 72 validating that archive.ContainsFile(fileFoo) is false.

This unit test case validates that:
(1) receivedFileAdded is true.

(2) receivedFileUpdated is true.

(3) receivedFileDeleted is true.

314.  ABB.SrcML.Test.LastModifiedArchiveTests.TestRename

Code with line numbers

This unit test case method tests rename .

This unit test case includes following focal methods:
(1) An assertion in line 95 validating that archive.ContainsFile(pathToFoo) is true.
(2) An assertion in line 99 validating that archive.IsOutdated(pathToFoo) is true.
(3) An assertion in line 102 validating that archive.ContainsFile(pathToBar) is true.
(4) An assertion in line 103 validating that archive.ContainsFile(pathToFoo) is false.

This unit test case validates that:
(1) receivedFileAdd is true.

(2) receivedFileRename is true.

315.  ABB.SrcML.Test.LastModifiedArchiveTests.TestRelativePathInsertWithFullPathCheck

Code with line numbers

This unit test case method tests relative path insert with full path check.

This unit test case includes following focal methods:
(1) An assertion in line 115 validating that archive.ContainsFile(fullPathToFoo) is true.

316.  ABB.SrcML.Test.LastModifiedArchiveTests.TestArchiveLoadRoundTrip

Code with line numbers

This unit test case method tests archive load round trip .

This unit test case includes following focal methods:
(1) An assertion in line 134 validating that archive.ContainsFile(pathToFoo) is true.

This unit test case validates that:
(1) File.Exists(archivePath) is true.

317.  ABB.SrcML.Test.LastModifiedArchiveTests.TestOutdatedWithNonExistentFiles

Code with line numbers

This unit test case method tests outdated with non existent files.

This unit test case includes following focal methods:
(1) An assertion in line 140 validating that archive.IsOutdated("foo.txt") is false.

318.  ABB.SrcML.Test.LastModifiedArchiveTests.TestIsEmpty

Code with line numbers

This unit test case method tests is empty .

This unit test case includes following focal methods:
(1) archive.AddOrUpdateFile(pathToFoo);(@line 150)
This focal method is related to assertions at line 151

This unit test case validates that:
(1) archive.IsEmpty is true.

(2) archive.IsEmpty is true.

319.  ABB.SrcML.Test.LimitedConcurrencyLevelTaskSchedulerTests.TestZeroTaskExecution

Code with line numbers

This unit test case method tests zero task execution .

320.  ABB.SrcML.Test.LimitedConcurrencyLevelTaskSchedulerTests.TestSingleTaskExecution

Code with line numbers

This unit test case method tests single task execution .

321.  ABB.SrcML.Test.LimitedConcurrencyLevelTaskSchedulerTests.TestDoubleTaskExecution

Code with line numbers

This unit test case method tests double task execution .

322.  ABB.SrcML.Test.LimitedConcurrencyLevelTaskSchedulerTests.TestStartAndStop

Code with line numbers

This unit test case method tests start and stop .

This unit test case validates that:
(1) currentlyExecuting is equal to 0.

(2) currentlyExecuting is equal to 0.

323.  ABB.SrcML.Test.ShortFileNameMappingTests.TestConcurrentAccess

Code with line numbers

This unit test case method tests concurrent access .

This unit test case validates that:
(1) obsSourceFiles.Count is equal to sourceFiles.Count().

(2) obsXmlFiles.Count is equal to xmlFiles.Count().

(3) sourceFiles.Contains(file) is true.
   sourceFiles is obtained from
   1) variable sourceFiles1 through slicing path
   2) variable sourceFiles2 through slicing path.

(4) xmlFiles.Contains(file) is true.

324.  ABB.SrcML.Test.ShortFileNameMappingTests.TestConstructor_CurrentDirectory

Code with line numbers

This unit test case method tests constructor current directory .

This unit test case includes following focal methods:
(1) var xmlPath = map.GetTargetPath("Foo.cs");(@line 120)
This focal method is related to assertions at line 121

This unit test case validates that:
(1) xmlPath.StartsWith(Environment.CurrentDirectory) is true.
   xmlPath is obtained from
   1) variable map through slicing path.

325.  ABB.SrcML.Test.ShortFileNameMappingTests.TestDispose

Code with line numbers

This unit test case method tests dispose .

This unit test case validates that:
(1) ! File.Exists("mappingTest\\mapping.txt") is true.

(2) File.Exists("mappingTest\\mapping.txt") is true.

326.  ABB.SrcML.Test.ShortFileNameMappingTests.TestSrcMLWithNoMappingFile

Code with line numbers

This unit test case method tests src ml with no mapping file.

This unit test case includes following focal methods:
(1) An assertion in line 142 validating that map.GetSourcePath(@"function_def.xml") is equal to @"C:\Workspaces\SrcML.NET\TestInputs\function_def.cpp".
(2) An assertion in line 143 validating that map.GetSourcePath(@"method_def.xml") is equal to @"C:\Workspaces\SrcML.NET\TestInputs\method_def.cpp".
(3) An assertion in line 144 validating that map.GetSourcePath(@"nested_scopes.xml") is equal to @"C:\Workspaces\SrcML.NET\TestInputs\nested_scopes.c".

327.  ABB.SrcML.Test.ShortFileNameMappingTests.TestFolderWithXmlNoMappingFile_NonSrcMLXml

Code with line numbers

This unit test case method tests folder with xml no mapping file non src ml xml.

This unit test case includes following focal methods:
(1) An assertion in line 155 validating that map.GetSourcePath(@"function_def.xml") is equal to @"C:\Workspaces\SrcML.NET\TestInputs\function_def.cpp".
(2) An assertion in line 156 validating that map.GetSourcePath(@"method_def.xml") is equal to @"C:\Workspaces\SrcML.NET\TestInputs\method_def.cpp".
(3) An assertion in line 157 validating that map.GetSourcePath(@"nested_scopes.xml") is equal to @"C:\Workspaces\SrcML.NET\TestInputs\nested_scopes.c".

328.  ABB.SrcML.Test.ShortFileNameMappingTests.TestGetSourcePath_FullPath

Code with line numbers

This unit test case method tests get source path full path .

This unit test case includes following focal methods:
(1) var sourcePath = map.GetSourcePath(@"C:\srcmlArchive\Example.cs.1.xml");(@line 168)
This focal method is related to assertions at line 169

This unit test case validates that:
(1) sourcePath is equal to @"C:\Foo\Bar\Example.cs".
   sourcePath is obtained from
   1) variable map through slicing path.

329.  ABB.SrcML.Test.ShortFileNameMappingTests.TestGetSourcePath_JustFileName

Code with line numbers

This unit test case method tests get source path just file name .

This unit test case includes following focal methods:
(1) var sourcePath = map.GetSourcePath(@"Example.cs.2.xml");(@line 180)
This focal method is related to assertions at line 181

This unit test case validates that:
(1) sourcePath is equal to @"C:\Foo\Bar\xyzzy\Example.cs".
   sourcePath is obtained from
   1) variable map through slicing path.

330.  ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_CorrectDir

Code with line numbers

This unit test case method tests get xml path correct dir .

This unit test case includes following focal methods:
(1) var xmlPath = map.GetTargetPath("Example.cpp");(@line 187)
This focal method is related to assertions at line 188

This unit test case validates that:
(1) xmlPath.StartsWith(map.TargetDirectory) is true.
   xmlPath is obtained from
   1) variable map through slicing path.

331.  ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_DifferentCase

Code with line numbers

This unit test case method tests get xml path different case .

This unit test case validates that:
(1) string.Compare(xmlPath1,xmlPath2,StringComparison.OrdinalIgnoreCase) != 0 is true.

332.  ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_DuplicatesInMapFile

Code with line numbers

This unit test case method tests get xml path duplicates in map file.

This unit test case includes following focal methods:
(1) var thirdName = map.GetTargetPath(@"C:\OtherDir\Example.cs");(@line 208)
This focal method is related to assertions at line 209

This unit test case validates that:
(1) thirdName is equal to Path.Combine(Environment.CurrentDirectory,@"mappingTest\Example.cs.3.xml").
   thirdName is obtained from
   1) variable map through slicing path.

333.  ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_NonExistentDir

Code with line numbers

This unit test case method tests get xml path non existent dir .

This unit test case includes following focal methods:
(1) var xmlPath = map.GetTargetPath("Example.cpp");(@line 216)
This focal method is related to assertions at line 217

This unit test case validates that:
(1) ! File.Exists("MissingDir") is true.

(2) xmlPath.StartsWith(map.TargetDirectory) is true.
   xmlPath is obtained from
   1) variable map through slicing path.

334.  ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_Repeated

Code with line numbers

This unit test case method tests get xml path repeated .

This unit test case includes following focal methods:
(1) var xmlPath2 = map.GetTargetPath("Example.cpp");(@line 224)
This focal method is related to assertions at line 225

This unit test case validates that:
(1) xmlPath2 is equal to xmlPath1.
   xmlPath2 is obtained from
   1) variable map through slicing path.

335.  ABB.SrcML.Test.ShortFileNameMappingTests.TestGetXmlPath_SameName

Code with line numbers

This unit test case method tests get xml path same name .

This unit test case includes following focal methods:
(1) var xmlPath2 = map.GetTargetPath(@"Subdir\Example.cpp");(@line 232)
This focal method is related to assertions at line 233

This unit test case validates that:
(1) xmlPath2 is not equal to xmlPath1.
   xmlPath2 is obtained from
   1) variable map through slicing path.

336.  ABB.SrcML.Test.ShortFileNameMappingTests.TestMappingFile

Code with line numbers

This unit test case method tests mapping file .

This unit test case includes following focal methods:
(1) An assertion in line 243 validating that map.GetTargetPath(@"C:\Foo\Bar\test.cs") is equal to @"C:\srcmlArchive\test.cs.1.xml".
(2) An assertion in line 244 validating that map.GetTargetPath(@"C:\Foo\Bar\Example.cs") is equal to @"C:\srcmlArchive\Example.cs.1.xml".
(3) An assertion in line 245 validating that map.GetTargetPath(@"C:\Foo\Bar\xyzzy\Example.cs") is equal to @"C:\srcmlArchive\Example.cs.2.xml".

337.  ABB.SrcML.Test.ShortFileNameMappingTests.TestRountrip

Code with line numbers

This unit test case method tests rountrip .

This unit test case includes following focal methods:
(1) An assertion in line 252 validating that map.GetSourcePath(xmlPath) is equal to Path.GetFullPath("Foo.cs").

338.  ABB.SrcML.Test.ShortFileNameMappingTests.TestSaveMapping

Code with line numbers

This unit test case method tests save mapping .

This unit test case validates that:
(1) File.Exists(@"mappingTest\mapping.txt") is true.

(2) lines.Length is equal to 2.

339.  ABB.SrcML.Test.ShortFileNameMappingTests.TestXmlPathWithDifferentCase

Code with line numbers

This unit test case method tests xml path with different case.

This unit test case includes following focal methods:
(1) An assertion in line 284 validating that map.GetSourcePath(storedXmlPath) is not null.
(2) An assertion in line 288 validating that map.GetSourcePath(absoluteXmlPath) is not null.

340.  ABB.SrcML.Test.SolutionMonitorTest.GenerateXmlForDirectoryTest

Code with line numbers

This unit test case method tests generate xml for directory test.

341.  ABB.SrcML.Test.SolutionMonitorTest.GenerateXmlForSourceTest

Code with line numbers

This unit test case method tests generate xml for source test.

This unit test case validates that:
(1) File.Exists(Path.Combine(xmlDirectory.FullName,"foo.c.xml")) is true.

(2) File.Exists(Path.Combine(xmlDirectory.FullName,"bar.c.xml")) is true.

342.  ABB.SrcML.Test.SolutionMonitorTest.GenerateXmlAndStringForSourceTest

Code with line numbers

This unit test case method tests generate xml and string for source test.

This unit test case validates that:
(1) File.Exists(Path.Combine(xmlDirectory.FullName,"2BVUHCFVS6KX3VHC6BBBWFADSZ7EY7FRH48CX7GV627VYYGVEC9WXVFCB8UMWXJSVCGESVDEH4MUXBG4WCJWNM9RKZ9CNJGV6M8C3JFRS2GBXJG4X88LX7RR.xml")) is true.

(2) File.Exists(Path.Combine(xmlDirectory.FullName,"2BVUHCFVS6KX3VHC6BBBWFADSZ7EY7FRH48CX7GV627VYYGVEC9WXVFCB8UMWXJSVCGESVDEH4MUXBG4WCJWNM9RKZ9CNJGV6M8C3JFRS2GBXJG4Z4UW37RR.xml")) is true.

343.  ABB.SrcML.Test.SolutionMonitorTest.GenerateXmlAndXElementForSourceTest

Code with line numbers

This unit test case method tests generate xml and x element for source test.

This unit test case validates that:
(1) fooXElement is not null.
   fooXElement is obtained from
   1) variable watchedFolder through slicing path.

(2) barXElement is not null.
   barXElement is obtained from
   1) variable watchedFolder through slicing path.

(3) File.Exists(Path.Combine(xmlDirectory.FullName,"2BVUHCFVS6KX3VHC6BBBWFADSZ7EY7FRH48CX7GV627VYYGVEC9WXVFCB8UMWXJSVCGESVDEH4MUXBG4WCJWNM9RKZ9CNJGV6M8C3JFRS2GBXJG4X88LX7RR.xml")) is true.

(4) File.Exists(Path.Combine(xmlDirectory.FullName,"2BVUHCFVS6KX3VHC6BBBWFADSZ7EY7FRH48CX7GV627VYYGVEC9WXVFCB8UMWXJSVCGESVDEH4MUXBG4WCJWNM9RKZ9CNJGV6M8C3JFRS2GBXJG4Z4UW37RR.xml")) is true.

344.  ABB.SrcML.Test.SolutionMonitorTest.FileAddDeleteChangeRenameTest

Code with line numbers

This unit test case method tests file add delete change rename test .

This unit test case validates that:
(1) File.Exists(Path.Combine(xmlDirectory.FullName,"2BVUHCFVS6KX3VHC6BBBWFADSZ7EY7FRH48CX7GV627VYYGVEC9WXVFCB8UMWXJSVCGESVDEH4MUXBG4WCJWNM9RKZ9CNJGV6M8C3JFRS2GBXJG4X88LX7RR.xml")) is true.

(2) File.Exists(Path.Combine(xmlDirectory.FullName,"2BVUHCFVS6KX3VHC6BBBWFADSZ7EY7FRH48CX7GV627VYYGVEC9WXVFCB8UMWXJSVCGESVDEH4MUXBG4WCJWNM9RKZ9CNJGV6M8C3JFRS2GBXJG4Z4UW37RR.xml")) is true.

(3) File.Exists(Path.Combine(xmlDirectory.FullName,"2BVUHCFVS6KX3VHC6BBBWFADSZ7EY7FRH48CX7GV627VYYGVEC9WXVFCB8UMWXJSVCGESVDEH4MUXBG4WCJWNM9RKZ9CNJGV6M8C3JFRS2GBXJG4649WXBSFB27XN7HFT88KNBJFY64XX.xml")) is true.

(4) archive.FileUnits.Count() is true.
   archive is obtained from
   1) variable watchedFolder through slicing path.

(5) numberOfFunctions(archive) is true.

(6) ! File.Exists(Path.Combine(xmlDirectory.FullName,"2BVUHCFVS6KX3VHC6BBBWFADSZ7EY7FRH48CX7GV627VYYGVEC9WXVFCB8UMWXJSVCGESVDEH4MUXBG4WCJWNM9RKZ9CNJGV6M8C3JFRS2GBXJG4Z4UW37RR.xml")) is true.

(7) archive.FileUnits.Count() is true.
   archive is obtained from
   1) variable watchedFolder through slicing path.

(8) numberOfFunctions(archive) is true.

(9) File.Exists(Path.Combine(xmlDirectory.FullName,"2BVUHCFVS6KX3VHC6BBBWFADSZ7EY7FRH48CX7GV627VYYGVEC9WXVFCB8UMWXJSVCGESVDEH4MUXBG4WCJWNM9RKZ9CNJGV6M8C3JFRS2GBXJG4649WXBSFB27XN7HFT88KNBJFY64XX.xml")) is true.

(10) archive.FileUnits.Count() is true.
   archive is obtained from
   1) variable watchedFolder through slicing path.

(11) numberOfFunctions(archive) is true.

(12) ! File.Exists(Path.Combine(xmlDirectory.FullName,"2BVUHCFVS6KX3VHC6BBBWFADSZ7EY7FRH48CX7GV627VYYGVEC9WXVFCB8UMWXJSVCGESVDEH4MUXBG4WCJWNM9RKZ9CNJGV6M8C3JFRS2GBXJG4X88LX7RR.xml")) is true.

(13) File.Exists(Path.Combine(xmlDirectory.FullName,"2BVUHCFVS6KX3VHC6BBBWFADSZ7EY7FRH48CX7GV627VYYGVEC9WXVFCB8UMWXJSVCGESVDEH4MUXBG4WCJWNM9RKZ9CNJGV6M8C3JFRS2GBXJG4X88LXJUS22.xml")) is true.

(14) archive.FileUnits.Count() is true.
   archive is obtained from
   1) variable watchedFolder through slicing path.

(15) numberOfFunctions(archive) is true.

(16) numberOfEventsRaised is true.

345.  ABB.SrcML.Test.Src2SrcMLRunnerTests.DifferentLanguageTest

Code with line numbers

This unit test case method tests handle different language test .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("srcmltest\\CSHARP.cs","srcml_xml\\differentlanguage_java.xml",Language.Java);(@line 90)
This focal method is related to assertions at line 92

This unit test case validates that:
(1) doc is not null.
   doc is obtained from
   1) variable srcmlObject through slicing path.

346.  ABB.SrcML.Test.Src2SrcMLRunnerTests.SrcMLFromStringTest

Code with line numbers

This unit test case method tests src ml from string test.

This unit test case includes following focal methods:
(1) string xml = srcmlObject.GenerateSrcMLFromString(sourceCode,Language.C);(@line 102)
This focal method is related to assertions at line 106

This unit test case validates that:
(1) element is not null.
   element is obtained from
   1) variable srcmlObject through slicing path
   2) variable sourceCode through slicing path.

347.  ABB.SrcML.Test.Src2SrcMLRunnerTests.InvalidLanguageTest

Code with line numbers

This unit test case method tests handle invalid language test .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("srcmltest\\foo.c","srcml_xml\\invalidlanguage_java.xml",Language.Java);(@line 114)
This focal method is related to assertions at line 115
(2) doc = srcmlObject.GenerateSrcMLFromFile("srcmltest\\foo.c","srcml_xml\\invalidlanguage_cpp.xml",Language.CPlusPlus);(@line 118)
This focal method is related to assertions at line 119
(3) doc = srcmlObject.GenerateSrcMLFromFile("srcmltest\\foo.c","srcml_xml\\invalidlanguage_c.xml",Language.C);(@line 122)
This focal method is related to assertions at line 124

This unit test case validates that:
(1) doc is not null.
   doc is obtained from
   1) variable srcmlObject through slicing path.

(2) doc is not null.
   doc is obtained from
   1) variable srcmlObject through slicing path.

(3) doc is not null.
   doc is obtained from
   1) variable srcmlObject through slicing path.

348.  ABB.SrcML.Test.Src2SrcMLRunnerTests.SingleFileTest

Code with line numbers

This unit test case method tests single file test .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("srcmltest\\foo.c","srcml_xml\\singlefile.xml");(@line 132)
This focal method is related to assertions at line 134, line 135, line 136

This unit test case validates that:
(1) doc is not null.
   doc is obtained from
   1) variable srcmlObject through slicing path.

(2) doc.FileUnits.Count() is equal to 1.
   doc is obtained from
   1) variable srcmlObject through slicing path.

(3) doc.FileUnits.First().Attribute("filename").Value is equal to "srcmltest\\foo.c".
   doc is obtained from
   1) variable srcmlObject through slicing path.

349.  ABB.SrcML.Test.Src2SrcMLRunnerTests.SingleFileToFileAndStringTest

Code with line numbers

This unit test case method tests single file to file and string test.

This unit test case includes following focal methods:
(1) string xml = srcmlObject.GenerateSrcMLAndStringFromFile("srcmltest\\foo.c","srcml_xml\\singlefile.xml");(@line 148)
This focal method is related to assertions at line 151

This unit test case validates that:
(1) xml is not null.
   xml is obtained from
   1) variable srcmlObject through slicing path.

(2) File.Exists("srcml_xml\\singlefile.xml") is true.

350.  ABB.SrcML.Test.Src2SrcMLRunnerTests.SingleFileToFileAndXElementTest

Code with line numbers

This unit test case method tests single file to file and x element test.

This unit test case includes following focal methods:
(1) XElement xElement = srcmlObject.GenerateSrcMLAndXElementFromFile("srcmltest\\foo.c","srcml_xml\\singlefile.xml");(@line 166)
This focal method is related to assertions at line 168

This unit test case validates that:
(1) xElement is not null.
   xElement is obtained from
   1) variable srcmlObject through slicing path.

(2) File.Exists("srcml_xml\\singlefile.xml") is true.

351.  ABB.SrcML.Test.Src2SrcMLRunnerTests.MultipleFilesTest

Code with line numbers

This unit test case method tests handle multiple files test .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFiles(new string,"srcml_xml\\multiplefile.xml");(@line 178)
This focal method is related to assertions at line 180, line 182, line 183, line 184

This unit test case validates that:
(1) doc is not null.
   doc is obtained from
   1) variable srcmlObject through slicing path.

(2) files.Count() is equal to 2.
   files is obtained from
   1) variable srcmlObject through slicing path.

(3) files[0].Attribute("filename").Value is equal to "srcmltest\\foo.c".
   files is obtained from
   1) variable srcmlObject through slicing path.

(4) files[1].Attribute("filename").Value is equal to "srcmltest\\bar.c".
   files is obtained from
   1) variable srcmlObject through slicing path.

352.  ABB.SrcML.Test.Src2SrcMLRunnerTests.MultipleFilesTest_DifferentDirectories

Code with line numbers

This unit test case method tests handle multiple files test different directories .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFiles(new string,"srcml_xml\\multiplefile.xml");(@line 191)
This focal method is related to assertions at line 193, line 195, line 196, line 197, line 198

This unit test case validates that:
(1) doc is not null.
   doc is obtained from
   1) variable srcmlObject through slicing path.

(2) files.Count() is equal to 3.
   files is obtained from
   1) variable srcmlObject through slicing path.

(3) files[0].Attribute("filename").Value is equal to "srcmltest\\foo.c".
   files is obtained from
   1) variable srcmlObject through slicing path.

(4) files[1].Attribute("filename").Value is equal to "srcmltest\\bar.c".
   files is obtained from
   1) variable srcmlObject through slicing path.

(5) files[2].Attribute("filename").Value is equal to "TestInputs\\baz.cpp".
   files is obtained from
   1) variable srcmlObject through slicing path.

353.  ABB.SrcML.Test.Src2SrcMLRunnerTests.MultipleFilesTest_Language

Code with line numbers

This unit test case method tests handle multiple files test language .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFiles(new string,"srcml_xml\\multiplefile.xml",Language.CPlusPlus);(@line 204)
This focal method is related to assertions at line 206, line 208, line 209, line 210, line 211, line 212

This unit test case validates that:
(1) doc is not null.
   doc is obtained from
   1) variable srcmlObject through slicing path.

(2) files.Count() is equal to 2.
   files is obtained from
   1) variable srcmlObject through slicing path.

(3) files[0].Attribute("filename").Value is equal to "srcmltest\\foo.c".
   files is obtained from
   1) variable srcmlObject through slicing path.

(4) files[0].Attribute("language").Value is equal to "C++".
   files is obtained from
   1) variable srcmlObject through slicing path.

(5) files[1].Attribute("filename").Value is equal to "srcmltest\\bar.c".
   files is obtained from
   1) variable srcmlObject through slicing path.

(6) files[1].Attribute("language").Value is equal to "C++".
   files is obtained from
   1) variable srcmlObject through slicing path.

354.  ABB.SrcML.Test.Src2SrcMLRunnerTests.ExclusionFilterTest

Code with line numbers

This unit test case method tests handle exclusion filter test .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromDirectory("srcmltest","srcml_xml\\exclusionfilter.xml",exclusionList,Language.C);(@line 234)
This focal method is related to assertions at line 243, line 244

This unit test case validates that:
(1) numFileUnits is equal to 1.
   numFileUnits is obtained from
   1) variable srcmlObject through slicing path
   2) variable exclusionList through slicing path.

(2) firstSourceFile is equal to Path.GetFullPath("srcmltest\\foo.c").
   firstSourceFile is obtained from
   1) variable srcmlObject through slicing path
   2) variable exclusionList through slicing path.

355.  ABB.SrcML.Test.Src2SrcMLRunnerTests.EmptyOutputFileTest

Code with line numbers

This unit test case method tests empty output file test .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("srcmltest\\foo.c","srcml_xml\\emptyFile.xml");(@line 254)
This focal method is related to assertions at line 256, line 257

This unit test case validates that:
(1) File.Exists("srcml_xml\\emptyFile.xml") is true.

(2) doc is not null.
   doc is obtained from
   1) variable srcmlObject through slicing path.

(3) doc.FileUnits.Count() is equal to 1.
   doc is obtained from
   1) variable srcmlObject through slicing path.

356.  ABB.SrcML.Test.Src2SrcMLRunnerTests.InputWithSpacesTest

Code with line numbers

This unit test case method tests input src 2 src ml runner tests with spaces test.

This unit test case includes following focal methods:
(1) var doc = runner.GenerateSrcMLFromFile("srcmltest\\File with spaces.cpp","srcml_xml\\input_with_spaces.xml");(@line 264)
This focal method is related to assertions at line 266, line 267

This unit test case validates that:
(1) doc is not null.
   doc is obtained from
   1) variable runner through slicing path.

(2) doc.FileUnits.Count() is equal to 1.
   doc is obtained from
   1) variable runner through slicing path.

357.  ABB.SrcML.Test.Src2SrcMLRunnerTests.MyTestMethod

Code with line numbers

This unit test case method tests handle my test method .

358.  ABB.SrcML.Test.SrcDiffFilterTests.TestRenameFunction

Code with line numbers

This unit test case method tests rename function .

This unit test case validates that:
(1) beforeFunc and diffBeforeFunc are not same.
   beforeFunc is obtained from
   1) variable beforeXml through slicing path.

(2) XNode.DeepEquals(beforeFunc,diffBeforeFunc) is true.

(3) afterFunc and diffAfterFunc are not same.
   afterFunc is obtained from
   1) variable afterXml through slicing path.

(4) XNode.DeepEquals(afterFunc,diffAfterFunc) is true.

359.  ABB.SrcML.Test.SrcDiffFilterTests.TestAddConditionBlock

Code with line numbers

This unit test case method tests add condition block .

This unit test case validates that:
(1) beforeFunc and diffBeforeFunc are not same.
   beforeFunc is obtained from
   1) variable beforeXml through slicing path.

(2) XNode.DeepEquals(beforeFunc,diffBeforeFunc) is true.

(3) afterFunc and diffAfterFunc are not same.
   afterFunc is obtained from
   1) variable afterXml through slicing path.

(4) XNode.DeepEquals(afterFunc,diffAfterFunc) is true.

360.  ABB.SrcML.Test.SrcDiffFilterTests.TestRemoveConditionBlock

Code with line numbers

This unit test case method tests remove condition block .

This unit test case validates that:
(1) beforeFunc and diffBeforeFunc are not same.
   beforeFunc is obtained from
   1) variable beforeXml through slicing path.

(2) XNode.DeepEquals(beforeFunc,diffBeforeFunc) is true.

(3) afterFunc and diffAfterFunc are not same.
   afterFunc is obtained from
   1) variable afterXml through slicing path.

(4) XNode.DeepEquals(afterFunc,diffAfterFunc) is true.

361.  ABB.SrcML.Test.SrcDiffFilterTests.TestSplitFunction

Code with line numbers

This unit test case method tests split function .

This unit test case validates that:
(1) beforeUnit and diffBeforeUnit are not same.
   beforeUnit is obtained from
   1) variable beforeXml through slicing path.

(2) XNode.DeepEquals(beforeUnit,diffBeforeUnit) is true.

(3) afterUnit and diffAfterUnit are not same.
   afterUnit is obtained from
   1) variable afterXml through slicing path.

(4) XNode.DeepEquals(afterUnit,diffAfterUnit) is true.

362.  ABB.SrcML.Test.SrcMLArchiveTests.GenerateXmlForDirectoryTest

Code with line numbers

This unit test case method tests generate xml for directory test.

This unit test case includes following focal methods:
(1) An assertion in line 119 validating that archive.ContainsFile(fileName) is true.
(2) An assertion in line 129 validating that archive.ContainsFile(changedFileName) is true.
(3) An assertion in line 130 validating that archive.IsOutdated(changedFileName) is true.
(4) An assertion in line 139 validating that archive.IsOutdated(deletedFileName) is true.
(5) An assertion in line 148 validating that archive.IsOutdated(movedFileName) is true.
(6) An assertion in line 152 validating that archive.ContainsFile(newNameForMoved) is true.
(7) An assertion in line 153 validating that archive.ContainsFile(movedFileName) is false.

This unit test case validates that:
(1) resetEvent.WaitOne(300) is true.

(2) actualEventType is equal to expectedEventType.

(3) resetEvent.WaitOne(300) is true.

(4) actualEventType is equal to expectedEventType.

(5) resetEvent.WaitOne(300) is true.

(6) actualEventType is equal to expectedEventType.

(7) resetEvent.WaitOne(300) is true.

(8) actualEventType is equal to expectedEventType.

363.  ABB.SrcML.Test.SrcMLArchiveTests.TestDontUseExistingSrcML

Code with line numbers

This unit test case method tests dont use existing src ml .

This unit test case includes following focal methods:
(1) An assertion in line 170 validating that archive.ContainsFile(sourceFile) is true.
(2) An assertion in line 177 validating that archive.ContainsFile(sourceFile) is false.

This unit test case validates that:
(1) resetEvent.WaitOne(300) is true.

364.  ABB.SrcML.Test.SrcMLArchiveTests.TestEmptyArchive

Code with line numbers

This unit test case method tests empty archive .

This unit test case includes following focal methods:
(1) archive.AddOrUpdateFile(foo_c);(@line 188)
This focal method is related to assertions at line 189

This unit test case validates that:
(1) archive.IsEmpty is true.

(2) archive.IsEmpty is true.

365.  ABB.SrcML.Test.SrcMLElementTests.TestGetMethodSignature_Normal

Code with line numbers

This unit test case method tests get method signature normal .

This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable testSrcML through slicing path.

366.  ABB.SrcML.Test.SrcMLElementTests.TestGetMethodSignature_Whitespace

Code with line numbers

This unit test case method tests get method signature whitespace .

This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable testSrcML through slicing path.

367.  ABB.SrcML.Test.SrcMLElementTests.TestGetMethodSignature_InitializerList

Code with line numbers

This unit test case method tests get method signature initializer list .

This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable testSrcML through slicing path.

368.  ABB.SrcML.Test.SrcMLElementTests.TestGetLanguageForUnit_ValidLanguage

Code with line numbers

This unit test case method tests get language for unit valid language.

This unit test case validates that:
(1) SrcMLElement.GetLanguageForUnit(fileUnit) is equal to Language.CPlusPlus.
   fileUnit is obtained from
   1) variable testXml through slicing path.

369.  ABB.SrcML.Test.SrcMLElementTests.TestGetLanguageForUnit_NoLanguage

Code with line numbers

This unit test case method tests get language for unit no language.

This unit test case validates that:
(1) The unit test throws an SrcMLException exception.

370.  ABB.SrcML.Test.SrcMLElementTests.TestGetLanguageForUnit_InvalidLanguage

Code with line numbers

This unit test case method tests get language for unit invalid language.

This unit test case validates that:
(1) The unit test throws an SrcMLException exception.

371.  ABB.SrcML.Test.SrcMLElementTests.TestGetLanguageForUnit_InvalidArgument

Code with line numbers

This unit test case method tests get language for unit invalid argument.

This unit test case validates that:
(1) The unit test throws an ArgumentException exception.

(2) The unit test throws an ArgumentNullException exception.

372.  ABB.SrcML.Test.SrcMLFileTest.SingleFileTest

Code with line numbers

This unit test case method tests single file test .

This unit test case validates that:
(1) doc is not null.

(2) doc.FileUnits.Count() is equal to 1.

373.  ABB.SrcML.Test.SrcMLFileTest.CompoundFileTest

Code with line numbers

This unit test case method tests compound file test .

This unit test case validates that:
(1) doc is not null.

(2) doc.FileUnits.Count() is equal to 2.

374.  ABB.SrcML.Test.SrcMLFileTest.DisjunctMergedFileTest

Code with line numbers

This unit test case method tests handle disjunct merged file test .

This unit test case validates that:
(1) doc is not null.

(2) doc.ProjectDirectory is null.

375.  ABB.SrcML.Test.SrcMLFileTest.WhitespaceInCompoundDocumentTest

Code with line numbers

This unit test case method tests whitespace src ml file test in compound document test.

This unit test case validates that:
(1) nextNode is not equal to lastComment.
   nextNode is obtained from
   1) variable doc through slicing path.

376.  ABB.SrcML.Test.SrcMLFileTest.WhitespaceInSingleDocumentTest

Code with line numbers

This unit test case method tests whitespace src ml file test in single document test.

This unit test case validates that:
(1) nextNode is not equal to lastComment.
   nextNode is obtained from
   1) variable doc through slicing path.

377.  ABB.SrcML.Test.SrcMLFileTest.ExtraNewlinesInMergedDocumentTest

Code with line numbers

This unit test case method tests handle extra newlines in merged document test .

This unit test case validates that:
(1) firstElement.GetSrcLineNumber() is equal to 1.
   firstElement is obtained from
   1) variable unit through slicing path.

378.  ABB.SrcML.Test.SrcMLFileTest.EmptyElementTest

Code with line numbers

This unit test case method tests empty element test .

This unit test case validates that:
(1) doc.FileUnits.Count() is equal to 3.

379.  ABB.SrcML.Test.SrcMLGeneratorTests.DifferentLanguageTest

Code with line numbers

This unit test case method tests handle different language test .

This unit test case validates that:
(1) doc is not null.

380.  ABB.SrcML.Test.SrcMLGeneratorTests.TestStrangeEncodings

Code with line numbers

This unit test case method tests strange encodings .

This unit test case validates that:
(1) doc is not null.
   doc is obtained from
   1) variable sourceFileName through slicing path.

381.  ABB.SrcML.Test.SrcMLGeneratorTests.SrcMLFromStringTest

Code with line numbers

This unit test case method tests src ml from string test.

This unit test case includes following focal methods:
(1) string xml = generator.GenerateSrcMLFromString(sourceCode,Language.C);(@line 105)
This focal method is related to assertions at line 109

This unit test case validates that:
(1) element is not null.
   element is obtained from
   1) variable sourceCode through slicing path.

382.  ABB.SrcML.Test.SrcMLGeneratorTests.InvalidLanguageTest

Code with line numbers

This unit test case method tests handle invalid language test .

This unit test case validates that:
(1) doc is not null.

(2) doc is not null.

(3) doc is not null.

383.  ABB.SrcML.Test.SrcMLGeneratorTests.SingleFileTest

Code with line numbers

This unit test case method tests single file test .

This unit test case validates that:
(1) unit is not null.

(2) unit.Attribute("filename").Value is equal to "srcmltest\\foo.c".

384.  ABB.SrcML.Test.SrcMLGeneratorTests.MultipleFilesTest

Code with line numbers

This unit test case method tests handle multiple files test .

This unit test case includes following focal methods:
(1) var doc = generator.GenerateSrcMLFileFromFiles(new string,"srcml_xml\\multiplefile.xml");(@line 140)
This focal method is related to assertions at line 142, line 144, line 145, line 146

This unit test case validates that:
(1) doc is not null.

(2) files.Count() is equal to 2.

(3) files[0].Attribute("filename").Value is equal to "srcmltest\\foo.c".

(4) files[1].Attribute("filename").Value is equal to "srcmltest\\bar.c".

385.  ABB.SrcML.Test.SrcMLGeneratorTests.MultipleFilesTest_DifferentDirectories

Code with line numbers

This unit test case method tests handle multiple files test different directories .

This unit test case includes following focal methods:
(1) var doc = generator.GenerateSrcMLFileFromFiles(new string,"srcml_xml\\multiplefile.xml");(@line 151)
This focal method is related to assertions at line 153, line 155, line 156, line 157, line 158

This unit test case validates that:
(1) doc is not null.

(2) files.Count() is equal to 3.

(3) files[0].Attribute("filename").Value is equal to "srcmltest\\foo.c".

(4) files[1].Attribute("filename").Value is equal to "srcmltest\\bar.c".

(5) files[2].Attribute("filename").Value is equal to "TestInputs\\baz.cpp".

386.  ABB.SrcML.Test.SrcMLGeneratorTests.MultipleFilesTest_Language

Code with line numbers

This unit test case method tests handle multiple files test language .

This unit test case validates that:
(1) doc is not null.

(2) files.Count() is equal to 2.
   files is obtained from
   1) variable doc through slicing path.

(3) files[0].Attribute("filename").Value is equal to "srcmltest\\foo.c".
   files is obtained from
   1) variable doc through slicing path.

(4) files[0].Attribute("language").Value is equal to "C++".
   files is obtained from
   1) variable doc through slicing path.

(5) files[1].Attribute("filename").Value is equal to "srcmltest\\bar.c".
   files is obtained from
   1) variable doc through slicing path.

(6) files[1].Attribute("language").Value is equal to "C++".
   files is obtained from
   1) variable doc through slicing path.

387.  ABB.SrcML.Test.SrcMLGeneratorTests.ExclusionFilterTest

Code with line numbers

This unit test case method tests handle exclusion filter test .

This unit test case includes following focal methods:
(1) var doc = generator.GenerateSrcMLFileFromDirectory("srcmltest","srcml_xml\\exclusionfilter.xml",exclusionList,Language.C);(@line 182)
This focal method is related to assertions at line 190, line 191

This unit test case validates that:
(1) numFileUnits is equal to 1.
   numFileUnits is obtained from
   1) variable exclusionList through slicing path.

(2) firstSourceFile is equal to Path.GetFullPath("srcmltest\\foo.c").
   firstSourceFile is obtained from
   1) variable exclusionList through slicing path.

388.  ABB.SrcML.Test.SrcMLGeneratorTests.EmptyOutputFileTest

Code with line numbers

This unit test case method tests empty output file test .

This unit test case validates that:
(1) File.Exists("srcml_xml\\emptyFile.xml") is true.

(2) doc is not null.

(3) doc.FileUnits.Count() is equal to 1.

389.  ABB.SrcML.Test.SrcMLGeneratorTests.InputWithSpacesTest

Code with line numbers

This unit test case method tests input src ml generator tests with spaces test.

This unit test case validates that:
(1) doc is not null.

(2) doc.FileUnits.Count() is equal to 1.

390.  ABB.SrcML.Test.SrcMLGeneratorTests.TestGenerateSrcMLFromFile_NonDefaultExtension

Code with line numbers

This unit test case method tests generate src ml from file non default extension.

This unit test case validates that:
(1) doc is not null.

(2) doc.FileUnits.Count() is equal to 1.

391.  ABB.SrcML.Test.SrcMLGeneratorTests.TestGenerateSrcMLFromFiles_NonDefaultExtension

Code with line numbers

This unit test case method tests generate src ml from files non default extension.

This unit test case includes following focal methods:
(1) var doc = generator.GenerateSrcMLFileFromFiles(new,@"srcml_xml\multiple_files_csharp.xml");(@line 231)
This focal method is related to assertions at line 232, line 233

This unit test case validates that:
(1) doc is not null.

(2) doc.FileUnits.Count() is equal to 3.

392.  ABB.SrcML.Test.SRCTest.CheckPositionNumberWithSingleUnit

Code with line numbers

This unit test case method tests check position number with single unit.

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile(@"srctest\foo.c",@"srctest_xml\singleunit_position.xml");(@line 58)
This focal method is related to assertions at line 62, line 63, line 64, line 65, line 66, line 67, line 69, line 70, line 71

This unit test case validates that:
(1) firstUnit.GetSrcLinePosition() is equal to 0.
   firstUnit is obtained from
   1) variable srcmlObject through slicing path.

(2) firstUnit.Descendants(SRC.Type).First().Element(SRC.Name).GetSrcLinePosition() is equal to 1.
   firstUnit is obtained from
   1) variable srcmlObject through slicing path.

(3) firstUnit.Element(SRC.Function).GetSrcLinePosition() is equal to 1.
   firstUnit is obtained from
   1) variable srcmlObject through slicing path.

(4) firstUnit.Descendants(SRC.Name).First().GetSrcLinePosition() is equal to 5.
   firstUnit is obtained from
   1) variable srcmlObject through slicing path.

(5) firstUnit.Descendants(SRC.Name).First().GetSrcLinePosition() is equal to 5.
   firstUnit is obtained from
   1) variable srcmlObject through slicing path.

(6) firstUnit.Descendants(SRC.Name).First().GetSrcLinePosition() is equal to 45.
   firstUnit is obtained from
   1) variable srcmlObject through slicing path.

(7) firstUnit.Descendants(SRC.Name).First().GetSrcLinePosition() is equal to 6.
   firstUnit is obtained from
   1) variable srcmlObject through slicing path.

(8) firstUnit.Descendants(SRC.Condition).First().GetSrcLinePosition() is equal to 10.
   firstUnit is obtained from
   1) variable srcmlObject through slicing path.

(9) firstUnit.Descendants(SRC.Name).First().GetSrcLinePosition() is equal to 9.
   firstUnit is obtained from
   1) variable srcmlObject through slicing path.

393.  ABB.SrcML.Test.SRCTest.GetSrcLineNumberWithSingleUnit

Code with line numbers

This unit test case method tests get src line number with single unit.

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("srctest\\singleunitlinenum.c",@"srctest_xml\singleunit_linenumber.xml");(@line 82)
This focal method is related to assertions at line 86, line 87, line 88

This unit test case validates that:
(1) unit.GetSrcLineNumber() is equal to 1.
   unit is obtained from
   1) variable srcmlObject through slicing path.

(2) unit.Element(SRC.Function).GetSrcLineNumber() is equal to 1.
   unit is obtained from
   1) variable srcmlObject through slicing path.

(3) unit.Descendants(SRC.Call).First().GetSrcLineNumber() is equal to 2.
   unit is obtained from
   1) variable srcmlObject through slicing path.

394.  ABB.SrcML.Test.SRCTest.GetLineInfoWithString

Code with line numbers

This unit test case method tests get line info with string.

This unit test case validates that:
(1) element.GetSrcLineNumber() is equal to 1.

(2) element.GetSrcLinePosition() is equal to 1.

395.  ABB.SrcML.Test.SRCTest.GetSrcLineNumberWithMultipleUnit

Code with line numbers

This unit test case method tests get src line number with multiple unit.

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromDirectory("srctest","srctest_xml\\multipleunit_linenumber.xml");(@line 112)
This focal method is related to assertions at line 116, line 117

This unit test case validates that:
(1) firstUnit.Element(SRC.Function).GetSrcLineNumber() is equal to 1.
   firstUnit is obtained from
   1) variable srcmlObject through slicing path.

(2) firstUnit.Descendants(SRC.Call).First().GetSrcLineNumber() is equal to 2.
   firstUnit is obtained from
   1) variable srcmlObject through slicing path.

396.  ABB.SrcML.Test.SRCTest.ToSourceTest

Code with line numbers

This unit test case method tests convert to source test .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("srctest\\foo.c","srctest_xml\\srctest_tosource.xml");(@line 127)
This focal method is related to assertions at line 133

This unit test case validates that:
(1) contentsFromXml is equal to text.
   contentsFromXml is obtained from
   1) variable srcmlObject through slicing path.

397.  ABB.SrcML.Test.SRCTest.ParentStatementTest

Code with line numbers

This unit test case method tests parent statement test .

This unit test case includes following focal methods:
(1) var doc = srcmlObject.GenerateSrcMLFromFile("srctest\\foo.c","srctest_xml\\srctest_parentstatement.xml");(@line 141)
This focal method is related to assertions at line 156, line 157, line 158, line 159

This unit test case validates that:
(1) unitParent is null.
   unitParent is obtained from
   1) variable srcmlObject through slicing path.

(2) functionParent is null.
   functionParent is obtained from
   1) variable srcmlObject through slicing path.

(3) expression is equal to callParent.
   expression is obtained from
   1) variable srcmlObject through slicing path.

(4) variableParent is equal to declaration.
   variableParent is obtained from
   1) variable srcmlObject through slicing path.

398.  ABB.SrcML.Test.SRCTest.ContainsCallToTest

Code with line numbers

This unit test case method tests check if srctest contains call to test.

This unit test case includes following focal methods:
(1) var xml = srcmlObject.GenerateSrcMLFromString(source);(@line 170)
This focal method is related to assertions at line 175, line 176

This unit test case validates that:
(1) element.ContainsCallTo("printf") is true.
   element is obtained from
   1) variable srcmlObject through slicing path
   2) variable source through slicing path.

(2) expression.ContainsCallTo("printf") is false.
   expression is obtained from
   1) variable srcmlObject through slicing path
   2) variable source through slicing path.

399.  ABB.SrcML.Test.TransformHarnessTest.NullTransformTypeTest

Code with line numbers

This unit test case method tests handle null transform type test .

400.  ABB.SrcML.Test.TransformHarnessTest.NonTransformTypeTest

Code with line numbers

This unit test case method tests non transform type test .

401.  ABB.SrcML.Test.TransformHarnessTest.TransformWithoutDefaultConstructor

Code with line numbers

This unit test case method tests transform transform harness test without default constructor.

402.  ABB.SrcML.Test.TransformHarnessTest.InvalidQueryFunctionTest

Code with line numbers

This unit test case method tests handle invalid query function test .

This unit test case validates that:
(1) tests.Count() is equal to 0.

403.  ABB.SrcML.Test.TransformHarnessTest.QueryFunctionWithNullType

Code with line numbers

This unit test case method tests query function with null type.

404.  ABB.SrcML.Test.TransformHarnessTest.QueryFunctionWithNullMethod

Code with line numbers

This unit test case method tests query function with null method.

405.  ABB.SrcML.Test.TransformHarnessTest.QueryFunctionWithMissingMethod

Code with line numbers

This unit test case method tests query function with missing method.

406.  ABB.SrcML.Test.TransformHarnessTest.QueryFunctionWithBadSignature

Code with line numbers

This unit test case method tests query function with bad signature.

407.  ABB.SrcML.Test.TransformHarnessTest.NoQueriesTest

Code with line numbers

This unit test case method tests handle no queries test .

This unit test case validates that:
(1) tests.Count() is equal to 0.

408.  ABB.SrcML.Test.TransformHarnessTest.StaticQueryCreationWithoutDefaultConstructorTest

Code with line numbers

This unit test case method tests handle static query creation without default constructor test .

This unit test case validates that:
(1) q is not null.

409.  ABB.SrcML.Test.TransformHarnessTest.QueryCreationWithoutDefaultConstructorTest

Code with line numbers

This unit test case method tests query creation without default constructor test.