Ejemplo n.º 1
0
 public void WhenAClassificationTypeIsPassedIntoTheCtor_ThenTheCorrespondingPropertiesAreSetProperly()
 {
     var tag = new ErrorTokenTag<object>( "Error" ) { Span = new SnapshotSpan() };
     var tagSpan = new TokenTagSpan<ITokenTag<object>, object>( tag );
     Assert.Equal( tag.Span, tagSpan.Span );
     Assert.Equal( tag, tagSpan.Tag );
 }
Ejemplo n.º 2
0
        public void WhenAClassificationTypeIsPassedIntoTheCtor_ThenTheCorrespondingPropertiesAreSetProperly()
        {
            var tag = new ErrorTokenTag <object>("Error")
            {
                Span = new SnapshotSpan()
            };
            var tagSpan = new TokenTagSpan <ITokenTag <object>, object>(tag);

            Assert.Equal(tag.Span, tagSpan.Span);
            Assert.Equal(tag, tagSpan.Tag);
        }