public async Task GetEndPoint_Body()
        {
            CodeNamespace testObject = await GetCodeNamespaceAsync("A.B");

            TextPoint endPoint = testObject.GetEndPoint(vsCMPart.vsCMPartBody);

            Assert.Equal(27, endPoint.Line);
            Assert.Equal(1, endPoint.LineCharOffset);
        }
        public async Task GetEndPoint_WholeWithAttributes()
        {
            CodeNamespace testObject = await GetCodeNamespaceAsync("A.B");

            TextPoint endPoint = testObject.GetEndPoint(vsCMPart.vsCMPartWholeWithAttributes);

            Assert.Equal(27, endPoint.Line);
            Assert.Equal(2, endPoint.LineCharOffset);
        }
        public async Task GetEndPoint_Navigate()
        {
            CodeNamespace testObject = await GetCodeNamespaceAsync("A.B");

            TextPoint endPoint = testObject.GetEndPoint(vsCMPart.vsCMPartNavigate);

            Assert.Equal(18, endPoint.Line);
            Assert.Equal(14, endPoint.LineCharOffset);
        }
示例#4
0
        public void GetEndPoint_Navigate()
        {
            CodeNamespace testObject = GetCodeNamespace("A.B");

            TextPoint endPoint = testObject.GetEndPoint(vsCMPart.vsCMPartNavigate);

            Assert.Equal(18, endPoint.Line);
            Assert.Equal(14, endPoint.LineCharOffset);
        }
示例#5
0
        public void GetEndPoint_Body()
        {
            CodeNamespace testObject = GetCodeNamespace("A.B");

            TextPoint endPoint = testObject.GetEndPoint(vsCMPart.vsCMPartBody);

            Assert.Equal(27, endPoint.Line);
            Assert.Equal(1, endPoint.LineCharOffset);
        }
        public async Task GetEndPoint_Whole()
        {
            CodeNamespace testObject = await GetCodeNamespaceAsync("A.B");

            Assert.Throws <NotImplementedException>(() => testObject.GetEndPoint(vsCMPart.vsCMPartWhole));
        }
        public async Task GetEndPoint_HeaderWithAttributes()
        {
            CodeNamespace testObject = await GetCodeNamespaceAsync("A.B");

            Assert.Throws <NotImplementedException>(() => testObject.GetEndPoint(vsCMPart.vsCMPartHeaderWithAttributes));
        }
        public async Task GetEndPoint_BodyWithDelimiter()
        {
            CodeNamespace testObject = await GetCodeNamespaceAsync("A.B");

            Assert.Throws <NotImplementedException>(() => testObject.GetEndPoint(vsCMPart.vsCMPartBodyWithDelimiter));
        }
        public async Task GetEndPoint_AttributesWithDelimiter()
        {
            CodeNamespace testObject = await GetCodeNamespaceAsync("A.B");

            Assert.Throws <COMException>(() => testObject.GetEndPoint(vsCMPart.vsCMPartAttributesWithDelimiter));
        }
示例#10
0
        public void GetEndPoint_Whole()
        {
            CodeNamespace testObject = GetCodeNamespace("A.B");

            Assert.Throws <NotImplementedException>(() => testObject.GetEndPoint(vsCMPart.vsCMPartWhole));
        }
示例#11
0
        public void GetEndPoint_BodyWithDelimiter()
        {
            CodeNamespace testObject = GetCodeNamespace("A.B");

            Assert.Throws <NotImplementedException>(() => testObject.GetEndPoint(vsCMPart.vsCMPartBodyWithDelimiter));
        }
示例#12
0
        public void GetEndPoint_AttributesWithDelimiter()
        {
            CodeNamespace testObject = GetCodeNamespace("A.B");

            Assert.Throws <COMException>(() => testObject.GetEndPoint(vsCMPart.vsCMPartAttributesWithDelimiter));
        }
        public void GetEndPoint_HeaderWithAttributes()
        {
            CodeNamespace testObject = GetCodeNamespace("A.B");

            AssertEx.Throws <NotImplementedException>(() => testObject.GetEndPoint(vsCMPart.vsCMPartHeaderWithAttributes));
        }